Upload to Drive
drive_uploadUpload local files or folders to Proton Drive with end-to-end encryption; folders upload recursively and conflicting items can skip, merge, rename, or replace.
Instructions
Upload a local file or folder to Proton Drive with end-to-end encryption; folders upload recursively. Returns {uploaded, skipped, failed} counts and fails the call if failed > 0 (e.g. quota exceeded, destination not found). File and folder conflict strategies are separate (CLI v0.8.0+), both default to 'skip'. The destination folder must exist (drive_mkdir creates it). To write text directly use drive_write_file. Requires confirmed=true when fileConflictStrategy or folderConflictStrategy is 'replace' (it trashes the existing remote item).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Must be true; only after the user approved this exact action. | |
| localPath | Yes | Absolute local path of the file or folder to upload. | |
| remotePath | Yes | Absolute remote destination folder, e.g. /my-files/Reports. | |
| fileConflictStrategy | No | 'skip' keeps the existing remote file (default). 'create-new-revision' uploads as a new version, keeping history. 'rename' uploads under a unique name. 'replace' trashes the remote file first — confirm with user. | |
| folderConflictStrategy | No | 'skip' keeps the existing remote folder (default). 'merge' merges contents into it. 'rename' uploads under a unique name. 'replace' trashes the remote folder first — confirm with user. |