Restore a deleted document
tp_restore_documentPuts a deleted document back from the Trash of the user's TransformPipe account, with its text, its folder, its sharing and its earlier versions. Use it when the user asks to undo a deletion, restore or recover a document, or see what was deleted. Deleted documents are kept for 14 days. Without id it lists what is in the Trash, newest first, with ids and how long each has left; with id it restores that one. A document whose folder was deleted with it comes back outside any folder. A document that was shared comes back shared: its link opens again for anyone who has it, and the people it was shared with can read it again.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tp_restore_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of a document in the Trash, from this tool without an id or from tp_delete_document. |