Replace a note
update_noteReplace a Note's whole content, only when you were asked to change that Note. First get_note; edit its document, keeping every other block exactly as it was; send it as {"document": …} with its content_revision and context_receipt. Edits others made meanwhile to other parts are kept. stale_block: someone changed the same part — get_note again and reapply. reread_required: your read is out of date — read again. lossy_markdown: Markdown or text would lose the Note's formatting — send the document. Never retry with a guessed revision. evidence: other Notes you relied on, with the content_revision you read; one changed since answers reread_required. To add progress, create a new Note instead.
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": {
"operation_id": "<operation_id>",
"note_id": "<note_id>",
"expected_revision": "<expected_revision>",
"context_receipt": "<context_receipt>",
"content": "<content>"
},
"name": "update_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The whole new content, normally {"document": …}: the document get_note returned with only the requested change, every other block (images, files, references, tables, styles, tags) kept exactly. A Markdown string or {"text": …} replaces everything; when the Note holds formatting that form cannot (details.formatting names it), update_note answers lossy_markdown and changes nothing: send {"document": …}. Every element: get_guide with topic "formatting". | |
| note_id | Yes | A Note's id, from get_thread, search or get_note. | |
| evidence | No | Other Notes you relied on: [{note_id, content_revision}]. | |
| operation_id | Yes | A new UUID for each write. After a lost answer, send the identical call with the same one, or check get_operation before writing again. | |
| context_receipt | Yes | The context_receipt get_note answered. | |
| expected_revision | Yes | The content_revision get_note answered. |