Redirect request
add_redirect_ruleRedirect matching HTTP requests to a specified absolute URL. Optionally filter by method and URL pattern.
Instructions
Transparently forward matching requests to a different absolute 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": {
"toUrl": "<toUrl>"
},
"name": "add_redirect_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toUrl | Yes | Absolute target URL. | |
| method | No | HTTP method to match (GET, POST, ...). Omit = all methods. | |
| urlPattern | No | RegExp source matched case-insensitively against the full request URL. |