Restore Document From Trash
restore_documentRestore a trashed document back into the Scrivener binder, optionally into a specific target folder.
Instructions
Restore a trashed document back into the binder, optionally into a specific target folder (otherwise it returns to a default location). Use list_trash to find the document id first. This is the inverse of delete_document. Requires an open project and a valid document id.
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 |
|---|---|---|---|
| force | No | Write even if the project appears open in Scrivener. Default false, which refuses the write to protect against your changes being overwritten by Scrivener on save. | |
| documentId | Yes | Scrivener document UUID, as returned by get_structure (a binder item "id"). | |
| targetFolderId | No | Optional id of the folder to restore into. Omit to restore to a default location. |