OWASP ZAP · Capability
ZAP API — replacer
ZAP API — replacer. 4 operations. Lead operation: replacer. Self-contained Naftiko capability covering one Owasp Zap business surface.
What You Can Do
GET
Replaceractionaddrule
— Adds a replacer rule. For the parameters: desc is a user friendly description, enabled is true or false, matchType is one of [REQ_HEADER, REQ_HEADER_STR, REQ_BODY_STR, RESP_HEADER, RESP_HEADER_STR, RESP_BODY_STR], matchRegex should be true
/v1/json/replacer/action/addrule
GET
Replaceractionremoverule
— Removes the rule with the given description
/v1/json/replacer/action/removerule
GET
Replaceractionsetenabled
— Enables or disables the rule with the given description based on the bool parameter
/v1/json/replacer/action/setenabled
GET
Replacerviewrules
— Returns full details of all of the rules
/v1/json/replacer/view/rules
MCP Tools
adds-replacer-rule-parameters-desc
Adds a replacer rule. For the parameters: desc is a user friendly description, enabled is true or false, matchType is one of [REQ_HEADER, REQ_HEADER_STR, REQ_BODY_STR, RESP_HEADER, RESP_HEADER_STR, RESP_BODY_STR], matchRegex should be true
read-only
idempotent
removes-rule-given-description
Removes the rule with the given description
read-only
idempotent
enables-disables-rule-given-description
Enables or disables the rule with the given description based on the bool parameter
read-only
idempotent
returns-full-details-all-rules
Returns full details of all of the rules
read-only
idempotent