save_draft
Save the caller's private draft of a plan without publishing it. Use it to work on a change over several calls; it needs the browser's own cookie or a signed-in session and answers 401 without one. Returns whether the draft differs from the plan and whether the plan has moved on.
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>",
"body": "<body>",
"base_revision": "<base_revision>"
},
"name": "save_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the room id, from get_rooms | |
| body | Yes | the whole plan as you want it, in Markdown | |
| owner | Yes | a display handle echoed back in the answer; it never selects another person's draft | |
| base_revision | Yes | the revision the draft started from, from get_editor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The room id. | |
| owner | Yes | Whose draft. | |
| behind | Yes | Whether someone published since the draft was started. | |
| has_draft | Yes | Whether a draft is now open. | |
| draft_differs | Yes | Whether it differs from the published body. |