proxy_rewrite_url
Rewrites request URLs matching a regex pattern by creating a passthrough rule, making it easy to modify traffic or redirect requests.
Instructions
Rewrite request URLs matching a pattern. Creates a passthrough rule with body match-replace on the URL.
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_pattern": "<match_pattern>",
"replace_with": "<replace_with>"
},
"name": "proxy_rewrite_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | No | Limit to this hostname | |
| priority | No | Rule priority (default: 50) | |
| replace_with | Yes | Replacement string | |
| match_pattern | Yes | Regex pattern to match in URLs |