Restore a document from the Trash
restore_documentBring a deleted document back from the Trash, to the folder it was in (or the root of its space if that folder is gone), with its tabs and share links. Find it with list_trash.
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": {
"documentId": "<documentId>"
},
"name": "restore_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | The document to restore (from list_trash). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document id. | |
| url | Yes | Link that opens the document in the livediagram editor. | |
| name | Yes | The restored document name, or null if unknown. | |
| restored | Yes | Always "document": tabs have no Trash. |