Put a service on the internet
add_domainAdds a domain to a service to make it publicly reachable. If no domain is given, a generated address is assigned; returns the DNS record needed for certificate issuance.
Instructions
With no domain, hands out gagarin's own generated address and the certificate is already held. With one, claims that name — and the answer says what DNS record the owner has to add before it can be issued. Both are idempotent; restating one repairs its ingress. A service is private until this call and a deploy can neither give an address nor take one away.
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": "<project>",
"service": "<service>"
},
"name": "add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | a hostname you control, e.g. shop.example.com. Absent asks for the generated one. | |
| project | Yes | project name or id | |
| service | Yes | service name, unique within the project |