Connect a domain to a project
connect_domainAsks to add a domain the person owns (such as www.acme.com) to a project, as the project's Domains settings do. Owners and admins of the project only. Nothing happens until you approve it in CodeGene: the answer gives a link to the request, which waits there for 15 minutes. Send the person that link; you cannot approve it. Then call get_approval with the requestId to learn how it ended. Once approved, the answer of get_approval lists the DNS record to add at the domain's provider; check_domain says who that provider is and shows when the record is seen. The address goes live by itself once the record is in.
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_id": "<project_id>",
"hostname": "<hostname>",
"reason": "<reason>"
},
"name": "connect_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| hostname | Yes | The domain or subdomain, such as www.acme.com. | |
| project_id | Yes | The project the domain points at (list_projects gives ids). | |
| component_id | No | Which part of the project, when it has more than one that can take an address. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |