set_domain
Serve the mock under the account's own hostname (Pro): declares it at Cloudflare and returns the CNAME to create (hostname → target) plus the current status; call again without hostname to re-check, or with hostname null to remove it.
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": {
"slug": "<slug>"
},
"name": "set_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Subdomain of the mock, e.g. "brisk-otter" | |
| hostname | No | e.g. mock.acme.com; null removes; omitted re-checks the status | |
| ownerToken | No | Owner token received at creation (not needed when the account is connected with an API token) |