set_custom_domain
Serve an app's API on a custom domain with an optional free Let's Encrypt certificate; the domain must already point to the app via CNAME or the request is refused with the DNS record to create.
Instructions
Serve an app's API on a custom domain (e.g. api.example.com), optionally with a free Let's Encrypt certificate. The domain must already point to the app with a CNAME record (get_custom_domain names it); otherwise it's refused with the record to create. Redeploys the app.
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": {
"appObjectId": "<appObjectId>",
"hostName": "<hostName>"
},
"name": "set_custom_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostName | Yes | The host name, e.g. api.example.com | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) | |
| letsEncrypt | No | Get a Let's Encrypt certificate for it |