Publish a site to a domain
publish_sitePuts a finished site live on the domain the user has connected. publish_site takes no payment itself; it requires a signed-in account with the pagetool.sites.write scope and either an active plan or an open free trial. Everything before it - building, editing, theming, previewing - is free and account-free, so build first and come here only when the user says they want to keep the site.
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_key": "<site_key>",
"domain": "<domain>"
},
"name": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain to publish to, e.g. "example.com". | |
| site_key | Yes | The site to publish. |