Connect a custom domain
add_custom_domainConnect the owner's own domain (e.g. kedaiali.com or www.kedaiali.com). Turns on the custom_domain add-on (5 credits/month). Two methods (get_capabilities custom_domains lists which this server has): "cname" returns DNS records the owner adds at their DNS provider; "nameservers" moves the domain's DNS to Cloudflare under our account, so the owner only changes the nameservers at their registrar and both kedaiali.com and www.kedaiali.com open the site (whole domains only, not subdomains). Returns the setup steps; check with domain_status.
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": {
"site": "<site>",
"hostname": "<hostname>"
},
"name": "add_custom_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| method | No | cname (default when available): the owner adds DNS records. nameservers: the owner points the domain at Cloudflare nameservers and we manage its DNS. | |
| hostname | Yes |