restore_from_trash
Restore a deleted document, database row, or database to its original path along with its registry entry. Refuses the restore if the path is occupied, so nothing is overwritten.
Instructions
Put a deleted document, database row or database back where it was, together with its registry entry (emoji, pin, position, links). Never overwrites: if something now exists at the original path the restore is refused and nothing moves. When the same path was deleted more than once, the most recent delete is restored.
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": {
"workspace": "<workspace>",
"path": "<path>"
},
"name": "restore_from_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The item to restore: the path it was deleted from (e.g. "documents/Old Draft.md", as list_trash reports it), its trashPath, or just its name ("Old Draft") | |
| workspace | Yes | Workspace path/name |