Redirect a domain
set_domain_redirectLet a domain and its www lead to another address — 'redirect old-company.com to new-company.com'. Not possible while a website or WordPress sits on the domain. Ask the user first: the domain stops showing anything of its own.
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_id": "<domain_id>",
"target_url": "<target_url>"
},
"name": "set_domain_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes | The domain id from list_domains. | |
| keep_path | No | true: /prices leads to target/prices (default). | |
| permanent | No | true = 301 (default), false = 302. | |
| target_url | Yes | e.g. https://new-company.com |