npm_create_redirection_host
Create a redirection host to forward one domain to another, setting the HTTP redirect code (301/302) and preserving the URL path.
Instructions
Create a redirection host that forwards one domain to another.
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_names": "<domain_names>",
"forward_scheme": "<forward_scheme>",
"forward_domain_name": "<forward_domain_name>",
"forward_http_code": "<forward_http_code>"
},
"name": "npm_create_redirection_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| enabled | No | ||
| domain_names | Yes | ||
| preserve_path | No | Preserve the URL path when redirecting | |
| block_exploits | No | ||
| certificate_id | No | ||
| forward_scheme | Yes | ||
| advanced_config | No | ||
| forward_http_code | Yes | HTTP redirect code, normally 301 or 302 | |
| forward_domain_name | Yes | Destination domain, e.g. example.com |