add_domain
Point a customer hostname at a public sandbox (give sandbox_id, and port if the app is not on 8000), or claim a wildcard like *.example.com for the whole org. Nothing routes until DNS is in place: the reply carries the CNAME record that has to be created at the domain's registrar (or, where a CNAME is impossible, an A record plus the TXT record in txt_record), which is a step only a human can do — hand the record over and check back with list_domains. The sandbox must be publicly reachable, since a custom host carries no preview token.
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": {
"host": "<host>"
},
"name": "add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | hostname, e.g. app.example.com, or *.example.com for an org wildcard | |
| port | No | the sandbox port behind the host (default 8000) | |
| sandbox_id | No | the sandbox to serve it (omit for a wildcard) |