add_redirect
Redirect HTTP traffic from a source domain to a destination URL with a configurable status code (301, 302, 307, or 308).
Instructions
Add an HTTP redirect route. from_host: domain to redirect (e.g. 'old.example.com'). to_url: destination URL. status_code: 301 (permanent), 302 (temporary), 307, or 308.
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": {
"from_host": "<from_host>",
"to_url": "<to_url>"
},
"name": "add_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_url | Yes | ||
| from_host | Yes | ||
| server_name | No | ||
| status_code | No |