trash_restore
Restore deleted files and folders to their original locations by checking path conflicts and app locks before queuing restore operations.
Instructions
Bring trash entries back to where they were (node_ids = the id of trash_list entries, at most 1000). Every entry is checked first - files.create where it came from, app locks - and nothing is queued unless all pass. A place that is taken meanwhile is reported on the operation. Answers 202 {ops: […], done, summary} (one op per storage); follow them with op_get, whose summary says how each ended.
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": {
"node_ids": "<node_ids>"
},
"name": "trash_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_ids | Yes | the trash entries to bring back: the id field of trash_list entries (at most 1000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the operation's JSON answer - the body its REST twin under /api/ai answers (an object) | |
| status | Yes |