Restore a folder
restore_folderBring a Folder back from Trash (list_folders with state "trash" finds it) into its parent, with the Folders, Threads and Notes that went to Trash with it; ones trashed on their own stay there (restore_thread, restore_note). If its parent is in Trash too, restore that first (target_deleted). Needs Can 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>",
"folder_id": "<folder_id>",
"expected_revision": "<expected_revision>"
},
"name": "restore_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | A Folder's id, from list_folders or list_threads. | |
| 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. |