get_editor
Read what the editor shows the caller. Use it before saving a draft, to learn the revision it must be based on. Returns the published plan, its revision and the caller's own draft; the draft is null when the caller has none or sends no session.
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>"
},
"name": "get_editor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the room id, from get_rooms | |
| owner | Yes | a display handle echoed back in the answer; it never selects another person's draft |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The room id. | |
| body | Yes | The published plan. | |
| draft | No | This owner's unsaved draft, when one is open. | |
| owner | Yes | The owner whose draft this is. | |
| title | Yes | Its title. | |
| behind | Yes | Whether someone published since this draft was started. When true, publishing with the draft's base revision will be refused and the owner must re-base first. | |
| revision | Yes | The current published revision. | |
| draft_at_ms | No | When the draft was last touched. | |
| draft_differs | Yes | Whether the draft differs from the published body. Computed on the SERVER: a client deciding this for itself would disagree with the server the moment someone else published. | |
| lease_minutes | Yes | How long an untouched draft survives, in whole minutes. | |
| updated_at_ms | Yes | When the room last changed: the same clock the room view carries, so a client holding this view can tell when the room has moved past it. | |
| revision_author | No | Who published the current revision, when anyone has. | |
| draft_idle_minutes | Yes | How long the draft has been idle, in whole minutes. | |
| draft_base_revision | No | The revision the draft was started against. |