add_proxy_match_replace_rule
Create Burp Proxy match-and-replace rules that automatically modify matching requests or responses, including headers, bodies, or request lines.
Instructions
Add a Burp Proxy match-and-replace rule to automatically modify matching requests or responses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"match_condition": "<match_condition>",
"match_type": "<match_type>",
"replace_string": "<replace_string>",
"enabled": "<enabled>"
},
"name": "add_proxy_match_replace_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional comment / label for the rule. | |
| enabled | Yes | Whether the rule is active immediately after creation. | |
| is_regex | No | Treat match_condition as a regular expression (default false). | |
| match_type | Yes | Where to apply the match: request_header, response_header, request_body, response_body, or request_first_line. | |
| replace_string | Yes | The string to substitute in place of the matched content. | |
| match_condition | Yes | The string or regex to match against. |