Restore a note
restore_noteBring a Note back from Trash into its Thread (search with state "trash" finds it). When its Thread is in Trash too, restore_thread first (parent_deleted); for earlier content, use restore_note_version. Can edit and organize restores any Note; Can add notes only the Notes it added. expected_revision is not compared. Answers a receipt with the new revision and url.
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>"
},
"name": "restore_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | A Note's id, from get_thread, search or get_note. | |
| 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. | |
| expected_revision | Yes | Its revision from list_threads, get_thread, list_folders or get_note (not a content_revision); not compared. |