create_redirect
Set up URL redirects for domains with source paths and destination URLs. Define permanent (301) or temporary (302) redirects, including wildcard matching for directories.
Instructions
Create a URL redirect
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>",
"redirect_url": "<redirect_url>"
},
"name": "create_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Source path (e.g., /old-page) | / |
| type | No | Redirect type (permanent=301, temp=302) | permanent |
| domain | Yes | Source domain | |
| redirect_url | Yes | Destination URL | |
| redirect_wildcard | No | Match all files in the directory |