sb_publish
Publish a draft page to live and report the revision that went live. Preview shared-section cascades with a dry run before shipping edits to other pages.
Instructions
Compile the draft into the live page, and report which revision went live (id, publishedAt, fromVersionId). PUBLISH CASCADES to every page sharing a changed global section or overlay; the dry run lists them (would_cascade) and warns FIRST when it would ship shared edits nobody published. verify:true then fetches the live page and says whether the origin is serving that revision yet — the storefront caches for 60s, so a reload showing the old page is that, not a failed publish.
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": {
"page_id": "<page_id>"
},
"name": "sb_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify | No | Fetch the live page afterwards and report whether it serves this revision | |
| dry_run | No | ||
| page_id | Yes | ||
| site_id | No | ||
| publish_drafts | No | Also publish the pages listed as unpublished_drafts and first_publish |