Upload to Drive
drive_uploadUpload local files or folders to Proton Drive with end-to-end encryption, recursing through folders and handling file/folder conflicts via skip, rename, replace, or new-revision strategies.
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. The server asks the user to approve this itself when a conflict strategy is 'replace' or 'create-new-revision' (overwrites existing items).
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": {
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "drive_upload"
}
}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 path of the file or folder to upload. | |
| remotePath | Yes | Absolute remote destination folder, e.g. /my-files/Reports. | |
| skipThumbnails | No | Skip thumbnails. | |
| fileConflictStrategy | No | 'skip' keeps the existing remote file (default). 'create-new-revision' overwrites with 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. |