Publish the site
publish_siteFor shop owners: put the site draft live, or one post's draft with post, or with revert: true go back to the last version that was live, dropping the draft. It always waits for the seller's tap: the reply is needs_confirmation, and at its link she sees every change and taps to publish. It takes the draft_version last read (with post, that post's version). On Free, Pro pieces of the site are refused with upgrade_required, and without_paid: true publishes without them; a blog post needs Pro.
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": {
"draft_version": "<draft_version>",
"request_id": "<request_id>"
},
"name": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | No | A post by slug or id: publish that post (or with revert, take it back) instead of the site. | |
| revert | No | Go back to the last working version instead of publishing the draft. | |
| request_id | Yes | Unique per call; the same id again returns the first result. | |
| without_paid | No | On Free: publish without the Pro pieces. | |
| draft_version | Yes | The site's `draft_version` as last read, or with `post` that post's `version`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| paid | No | ||
| site | No | ||
| error | No | ||
| changes | No | ||
| outcome | No | ||
| timezone | No | ||
| preview_url | No | ||
| confirmation | No |