add_redirect
Add an HTTP redirect rule to a site.
Requires: API key with write scope.
Args: slug: Site identifier source_path: Path to redirect, must start with "/" (e.g. "/old-page") target_url: Destination URL redirect_type: 301 (permanent, default) or 302 (temporary)
Returns: {"id", "source_path", "target_url", "redirect_type"}
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": {
"slug": "<slug>",
"source_path": "<source_path>",
"target_url": "<target_url>"
},
"name": "add_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| target_url | Yes | ||
| source_path | Yes | ||
| redirect_type | No |