Publish page
publish_pagePublish a page to make it live. revisionId must be the draft you reviewed: pass the latestRevision.id you read as both revisionId and expectedRevisionId, and latestRevision.headAnchor (from get_page, get_page_content or a save result) as expectedHeadAnchor. The publish is refused when a newer draft exists or the draft was edited since, so the user reviews again instead of publishing content they did not see.
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": {
"projectId": "<projectId>",
"pageId": "<pageId>",
"revisionId": "<revisionId>"
},
"name": "publish_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page ID | |
| projectId | Yes | The project ID | |
| revisionId | Yes | The revision to publish: the latestRevision.id that was reviewed | |
| expectedHeadAnchor | No | latestRevision.headAnchor as read at review time; the publish is refused if the draft was edited since | |
| expectedRevisionId | No | The head revision id the user reviewed; the publish is refused if a newer draft exists |