Add or update a request-modification rule (idempotent upsert)
proxy_update_request_transformCreate or replace a rule to transform matching HTTP requests by setting or removing headers, query parameters, or body in the proxy.
Instructions
Idempotently upsert a request transform rule by (method + url + regex) key. If a rule with the same key exists, its properties are replaced.
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": {
"method": "<method>",
"url": "<url>"
},
"name": "proxy_update_request_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL pattern (glob/substring by default, regex=true for raw regex). | |
| body | No | Replace the request body. | |
| regex | No | Treat 'url' as a raw regex (default false). | |
| method | Yes | HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, or OPTIONS. | |
| setQuery | No | Query params to add or override. | |
| setHeaders | No | Headers to add or override. | |
| removeQuery | No | Query params to strip from the URL. | |
| removeHeaders | No | Headers to strip from the outgoing request. |