Attach a custom domain (step 1 of 2)
add_custom_domainStart attaching a user-owned domain to an existing site. Returns a TXT record the user must add at their DNS provider. Idempotent: calling twice with the same (siteName, domain) returns the existing record instead of creating a duplicate. After the TXT is published (typically within minutes; up to 24h), call verify_custom_domain with the returned recordId. The site itself must already exist on a platform subdomain (e.g. {name}.vibedeploy.be or {name}.vibedeploy.eu). Call deploy_site first if it doesn't.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The user-owned hostname to attach (e.g. 'tester.subsite.site'). Must be a valid FQDN. | |
| siteName | Yes | The VibeDeploy site name to attach the domain to (e.g. 'tester'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| status | Yes | pending_verification on first attach; verified if the domain was already set up earlier. | |
| nextCall | No | Structured hint for the next tool call (e.g. verify_custom_domain). Lets an agent chain without parsing instructions. | |
| recordId | Yes | Pass this to verify_custom_domain after the TXT is in place. | |
| request_id | No | Server-assigned request correlation id. Quote it when contacting support. | |
| instructions | Yes | Plain-English instructions for the user. | |
| alreadyAttached | No | True when the call returned an existing record instead of creating one (idempotent path). | |
| dnsAutoConfigured | No | True when the verification TXT was written automatically because the domain is managed through VibeDeploy's Gandi account. The caller can call verify_custom_domain immediately without waiting for the user to add a TXT manually. Absent / false means the user has to add the record at their own DNS provider before verify will succeed. | |
| verificationRecord | No | Only present when status is pending_verification. |