Mitm Modify Body
mitm_modify_bodyReplace matched text in HTTP request/response payloads using regex substitution. Apply rules to selected flows to modify or delete body fragments.
Instructions
Regex-substitute inside matching request/response payloads (mitmproxy modify_body, DOTALL).
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": {
"params": "<params>"
},
"name": "mitm_modify_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| rule_id | No | ||
| rendered_spec | No |