Download from Drive
drive_downloadDownload files or folders from Proton Drive to a local destination folder, including recursive folder contents, with conflict handling for existing local items.
Instructions
Download a file or folder from Proton Drive to the local filesystem. localPath is a destination FOLDER, not the file's final path — created if missing; the item is placed inside it under its remote name (/my-files/report.pdf with localPath '/tmp/out' gives /tmp/out/report.pdf). Folders download recursively. File and folder conflict strategies are separate, both default to 'skip'. Returns {downloaded, skipped, failed} counts (not the local path) and fails the call if any file failed. The server asks the user to approve this itself when fileConflictStrategy or folderConflictStrategy is 'remove' (it deletes the existing LOCAL file or folder).
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": {
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "drive_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Optional and ignored: the server asks the user to approve this itself. You do not need to send it. | |
| localPath | Yes | Absolute local DESTINATION FOLDER, not the file's final path. Created if missing; the item is placed inside it under its remote name. | |
| remotePath | Yes | Absolute remote path to download, e.g. /my-files/report.pdf. | |
| fileConflictStrategy | No | 'skip' keeps the existing local file (default). 'rename' downloads under a unique name. 'remove' deletes the local file first — confirm with user. | |
| folderConflictStrategy | No | 'skip' keeps the existing local folder (default). 'merge' merges contents into it. 'rename' downloads under a unique name. 'remove' deletes the local folder first — confirm with user. |