write_doc_abort
Cancels an open document stage without altering the current document; aborting an already-aborted stage writes nothing and reports that state.
Instructions
Drop an open stage. The current document is unchanged. Aborting a stage that is already aborted reports that abort and writes nothing.
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": {
"stage_id": "<stage_id>"
},
"name": "write_doc_abort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Source tag. Must match the stage. | |
| exchange | No | The exchange (turn) this write belongs to, counting from 1. A write for exchange n while exchange n-1 was never appended is refused by the session graph until n-1 is appended. | |
| stage_id | Yes | ||
| session_id | No | Your transcript session id from emet_session_open. The session graph reads this session's state before the write and returns `session_graph.next` - the next step. A governed write with no session is refused (open one with emet_session_open and load_id). | |
| updated_by | No | Alias of `source`. Prefer `source`. |