Publish Site
publish_sitePublish the site to make it live on the web. Generates final HTML, optimizes for production, and deploys to CDN. Takes 5-15 seconds. This replaces whatever is currently live at the site's URL with the current draft — each publish is kept as a version in Site Backups. Publishing is included on paid plans only: if this site's plan doesn't include it, the call returns a plan handoff instead of publishing — a message and a link (its shape varies by host). Relay both to the user; don't retry the call.
Annotations: read-only=false, destructive=true, idempotent=false, open-world=true. Why: Replaces whatever is currently live with the draft — destructive AND open-world, because the result is on the public web. Not idempotent: every publish records a new published version in Site Backups and refreshes the site's scores, even for an unchanged draft. Hosts should confirm this one.
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": {
"site_id": "<site_id>"
},
"name": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site ID to publish |