Make a blog post Live
publish_postMake a blog post Live (and the blog's index page, if it is still a draft), then publish the site so the post is on the web, on every domain the site has. A site publish ships the whole site as it stands, including unpublished edits on other pages, just like Publish in the editor. A site that was never published isn't published here: its first publish, which picks its address, happens in Simplepages. Answers the post's contentHash, so a caller can confirm it made Live the version it approved.
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": {
"siteId": "<siteId>",
"slug": "<slug>"
},
"name": "publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The post's URL name, e.g. "how-we-price" for /blog/how-we-price. Lowercase words joined by hyphens. | |
| siteId | Yes | The site (id from list_sites). | |
| collection | No | Which collection the posts are in. Defaults to "blog", so posts are at /blog/<slug>. Lowercase words joined by hyphens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| path | Yes | The post's path on the site, e.g. "/blog/launch". | |
| slug | Yes | ||
| siteId | Yes | ||
| status | Yes | Draft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published (publish_post does that once the site has an active domain, as does Publish in Simplepages). | |
| editUrl | Yes | Opens the post's page in the Simplepages editor. | |
| liveUrl | No | Its address on the site's custom domain, once the site is published. Null without a domain. | |
| collection | Yes | ||
| previewUrl | No | Shareable preview link, Draft or Live. Null until its page row exists. | |
| contentHash | Yes | The version that was made Live. | |
| sitePublished | Yes | True when the site was published to every one of its domains, so the post is on the web. | |
| indexPublished | Yes | True when the blog's index page was a draft and is now Live too. | |
| previewCurrent | Yes | ||
| publishFailures | Yes | Domains whose publish failed, with why. The post stays Live and goes out with the next publish. | |
| publishedDomains | Yes | Domains the site was published to by this call. |