bricks_create_redirect
Create permanent or temporary redirects with automatic frontend hit tracking. Specify a source path and target URL to manage 301, 302, or 307 redirects.
Instructions
Create a 301/302/307 redirect. Hits are tracked automatically on the frontend.
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": {
"source": "<source>",
"target": "<target>"
},
"name": "bricks_create_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Redirect type: 301 (permanent), 302 (temporary), 307 (temporary preserve method). Default: 301 | |
| source | Yes | Source path (e.g. /old-page) | |
| target | Yes | Target URL (e.g. https://example.com/new-page) |