Restore a note version
restore_note_versionMake an earlier version the Note's current content, as a new revision: the history in between is kept. First get_note, then pass its content_revision as expected_revision and its context_receipt; preview_changed means the Note changed since — read it again. Can edit and organize restores any Note's version; Can add notes only those of Notes it added. Answers a receipt with restored_version_id, content_revision and url; the same operation_id answers it again instead of restoring twice.
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>",
"version_id": "<version_id>",
"expected_revision": "<expected_revision>",
"context_receipt": "<context_receipt>"
},
"name": "restore_note_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | A Note's id, from get_thread, search or get_note. | |
| version_id | Yes | A version's id, from get_note_history. | |
| 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. |