Modify request
add_modify_request_ruleRewrite request headers or body by specifying a URL pattern and HTTP method. Modify, remove headers, or replace body content to alter outgoing requests.
Instructions
Rewrite headers/body on matching requests, then pass through.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_modify_request_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method to match (GET, POST, ...). Omit = all methods. | |
| setHeaders | No | ||
| urlPattern | No | RegExp source matched case-insensitively against the full request URL. | |
| replaceBody | No | ||
| removeHeaders | No |