Publish a builder draft
publish_draftPublish a web-builder draft as its deck's next version (or as a new deck, for a draft started from scratch), live at once to everyone who opens it. Use it once the person has finished editing at the builder link from start_quick_edit; use rollback_deck to undo it afterwards. Needs decks:write (60 changes a minute). It never silently replaces newer work: if the deck was published since the draft's base version, nothing changes and you get ok: false, reason: "diverged" with next steps — have the person open the builder (it merges the newer version in), then call again. Also refused while the draft holds merge-conflict markers or when the plan's storage is full.
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": "<draft>"
},
"name": "publish_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | The draft's id (starts with `b`), from start_quick_edit or get_deck_sync's `draft.id`; it must belong to this workspace. | |
| force | No | Publish over a newer version instead of stopping at `diverged`. Only when the person explicitly says to replace it; the replaced version stays in history for rollback_deck. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |