Restore Deleted
restore_deletedUndo a delete_note, delete_folder or delete_attachment call: pass the delete_op_id it returned and everything that call removed comes back at its old path, while still in trash. An item whose path is now taken by another file, or whose trash window has passed, is skipped and listed. Safe to repeat: a second call restores nothing more. Refused if restoring would pass a plan limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op_id | Yes | The delete_op_id a delete tool returned | |
| vault_id | No | Target vault: its name (e.g. "Engram") or its UUID. REQUIRED when you own more than one vault; the server keeps no active-vault state between calls, so it must be passed on every vault-scoped call. Omit only if you have a single vault. Call list_vaults if a name does not resolve. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Notes restored | |
| folders | Yes | Empty folders restored | |
| skipped | Yes | Items not restored and why: path_taken (another file holds the path), expired (past trash retention), unavailable (attachment bytes already reaped), changed (the item changed since the delete), unreadable | |
| attachments | Yes | Attachments restored | |
| search_note | No | When search will see this change; use get_notes until then | |
| search_indexing_starts_in_seconds | No | At least this many seconds until indexing starts; search can lag further. Use get_notes to read the note until search finds it |