Restore a thread
restore_threadBring a Thread back from Trash (list_threads with state "trash" finds it) into its Folder, with the Notes that went to Trash with it; Notes trashed on their own stay there (restore_note). If its Folder is in Trash, restore_folder first (target_deleted). Needs Edit and organize; 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>",
"thread_id": "<thread_id>",
"expected_revision": "<expected_revision>"
},
"name": "restore_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | A Thread's id, from list_threads, search or a read. | |
| 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. |