set_side_page_state
Publish or unpublish a side page. Set published to true to make the current draft public, or false to hide it while preserving the last-published version for quick re-publishing.
Instructions
Publish or unpublish a side page. published:true publishes the CURRENT DRAFT — it sets the published pointer to the latest draft version, which is how you make draft edits (from edit_side_page / set_side_page_section) live. published:false hides the page publicly but keeps the last-published version marker, so re-publishing with no further edits restores it instantly. The response includes publishedVersionId — the version now live (unchanged from before on unpublish) — so you know exactly which version is public without a follow-up view_side_page call.
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": {
"slug": "<slug>",
"sideKey": "<sideKey>",
"published": "<published>"
},
"name": "set_side_page_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Parent landing page slug | |
| sideKey | Yes | Side page key | |
| published | Yes | true = publish, false = unpublish |