Clean up duplicates and empty folders
drive_cleanupTrash duplicate files and empty folders under a Proton Drive path: preview a plan first, then apply confirmed cleanup; items go to trash and can be restored with undo.
Instructions
Trash redundant duplicate copies and empty folders under a path; nothing is deleted and drive_undo restores them. The server lists the items from a fresh, complete scan: you name no files; kept copies, shared items and names already in the trash are left out. Without confirmed: plan (counts, bytes, 10 samples, skipped, remaining). With confirmed=true the server first asks the user to approve the exact list, and trashes nothing if Drive changed meanwhile. Max 50 per call; call again while remaining > 0.
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": {
"path": "<path>",
"fixes": "<fixes>"
},
"name": "drive_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder under /my-files. | |
| fixes | Yes | What to clean. | |
| verify | No | sha256-verify duplicates first (needed for shared items; slower). | |
| confirmed | No | Plan/apply switch: false or absent returns the plan only and changes nothing; true applies it after the server has asked the user to approve the exact list. |