Download from Drive
drive_downloadDownloads a file or folder from Proton Drive to a local destination folder; creates missing paths, downloads folders recursively, and handles file or folder conflicts.
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. Requires confirmed=true when fileConflictStrategy or folderConflictStrategy is 'remove' (it deletes the existing LOCAL file or folder).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Must be true; only after the user approved this exact action. | |
| 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. |