Add a custom domain
add_custom_domainCall this tool to connect a domain to an app. Pass app_id, domain and dns_mode (subdomain_cname or apex_address). Call get_custom_domain_instructions for usage and workflow. MCP version 2.12.
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": {
"app_id": "<app_id>",
"domain": "<domain>",
"dns_mode": "<dns_mode>"
},
"name": "add_custom_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | Target app id | |
| domain | Yes | Hostname to connect to this app | |
| dns_mode | Yes | DNS routing mode for this hostname | |
| mcp_version | No | Set to "2.12", the MCP version in this tool's description. Use this tool's version, not another tool's version. |