attach_custom_domain
Bind a custom domain to a Cloudflare Pages project and create the matching CNAME in an available Cloudflare DNS zone.
Instructions
Bind a custom domain to a Cloudflare Pages project and create a CNAME in a matching Cloudflare DNS zone when available.
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": {
"project_name": "<project_name>",
"domain": "<domain>"
},
"name": "attach_custom_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Fully qualified custom domain, for example app.example.com. | |
| project_name | Yes | Target Cloudflare Pages project name. |