Add or update an intercept-and-transform rule (idempotent upsert)
proxy_update_transformUpsert a transform rule by method, URL, and regex key, replacing patches if the rule exists, to avoid auto-review friction.
Instructions
Idempotently upsert a transform rule by (method + url + regex) key. If a rule with the same key exists, its patches are replaced. Use this instead of clear+re-add to avoid auto-review friction.
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>",
"patches": "<patches>"
},
"name": "proxy_update_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL pattern. Default is glob/substring matched against the full absolute URL. Use a short substring like 'viewMultiviews' to avoid classifier issues with full URLs. | |
| regex | No | Treat 'url' as a raw regex (default false). | |
| method | Yes | HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, or OPTIONS. | |
| patches | Yes | One or more JSON patch operations. |