Create Redirect
create_redirectCreate URL redirects in LightCMS to manage broken links and content reorganization. Set up 301 permanent or 302 temporary redirects from old URLs to new destinations.
Instructions
Create a new URL redirect. Use 301 for permanent redirects, 302 for temporary.
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_path": "<from_path>",
"to_path": "<to_path>"
},
"name": "create_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_path | Yes | Destination path or URL (e.g., /new-page),required | |
| from_path | Yes | Source path (e.g., /old-page),required | |
| description | No | Optional description/note | |
| status_code | No | 301 (permanent) or 302 (temporary), defaults to 301 |