Restore from trash
drive_restoreRestore a trashed file or folder to its original Proton Drive path using a trash path or uid from drive_list_trash. Refuses ambiguous same-name items.
Instructions
Restore a trashed file or folder to its original Proton Drive path. Find the path or uid with drive_list_trash. If several trashed items share the name, this refuses and lists their uids: the CLI can only address trashed items by name, so use the Proton Drive web or desktop app for that. Fails if the original parent is gone or a same-named item now exists at that path.
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": "drive_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | Trash uid from drive_list_trash; if path is also given they must match. | |
| path | No | Trash path from drive_list_trash. Give path or uid (or both). |