publish_draft
Publish the caller's own draft as the next revision. Use it after save_draft, with the same cookie or session. Returns the room's new revision, or 409 when someone published after expect_revision, so newer work is never overwritten.
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": {
"id": "<id>",
"owner": "<owner>",
"author": "<author>",
"expect_revision": "<expect_revision>"
},
"name": "publish_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the room id, from get_rooms | |
| note | No | a short note for the history, up to 80 characters | |
| owner | Yes | a display handle echoed back in the answer; it never selects another person's draft | |
| author | Yes | the display name the revision is credited to | |
| expect_revision | Yes | the revision you edited, from get_editor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The room id. | |
| title | Yes | Its title. | |
| revision | Yes | Its current revision. |