redirects_create
Define URL forwarding rules for a domain by specifying source path, destination URL, and HTTP status code (301, 302, or 303) to manage site traffic.
Instructions
Create a site redirect.
Args: domain: Domain. path: Source path (e.g. /old). destination: Target URL. redirect_type: 301 | 302 | 303. impersonate: Owning user. confirm: Required.
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": {
"domain": "<domain>",
"path": "<path>",
"destination": "<destination>"
},
"name": "redirects_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| domain | Yes | ||
| confirm | No | ||
| destination | Yes | ||
| impersonate | No | ||
| redirect_type | No | 301 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |