restore_from_trash
Recovers deleted files or folders from trash to their original location, or to root if original folder is missing.
Instructions
Restore a file or folder from the trash back to its original location. If the original parent folder no longer exists, the item is restored to the root directory.
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": {
"itemId": "<itemId>"
},
"name": "restore_from_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | The unique identifier of the file or folder to restore | |
| type | No | Type of item to restore. If not provided, the system will auto-detect. |