List domains
domainsList one owned project’s connected hostnames and the providers Tofu could write DNS records for — the dashboard’s Domains page, read. This is the read for “is my domain set up?”: it names every hostname connected to the project and what each is waiting for. domains[] gives each connection’s id, status, message, ownership TXT challenge, routing dnsRecords, providerVerification records and next: the step it waits on, who acts (waitingOn) and whether one-click can write its records (oneClick). providers[] says which one-click providers Tofu has configured and what the owner agrees to (consentNote); an unconfigured one is reported as unavailable rather than offered. enabled: false means no new hostname can be connected to this project right now, which is not the same as a project with no domains. It writes nothing, resolves no DNS and returns no credential.
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": {
"projectId": "<projectId>"
},
"name": "domains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domains | Yes | ||
| enabled | Yes | ||
| providers | Yes |