Write synced text file
drive_write_fileWrite UTF-8 text up to 5 MB to a file in the local Proton Drive sync folder; creates parent folders and needs confirmed=true to overwrite existing files. Desktop app syncs it to the cloud.
Instructions
Write text (max 5 MB) to a file in the local Proton Drive sync folder; no Proton login needed. Requires PROTON_DRIVE_SYNC_PATH; the desktop app must be running to sync it to the cloud. Creates parent directories locally. Refuses to overwrite an existing file unless confirmed=true — ask the user first. For binary content use drive_upload. Requires confirmed=true when the file already exists (it would be overwritten).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute remote Drive path of the file to write (must start with '/'). /my-files/<rest> maps to <PROTON_DRIVE_SYNC_PATH>/<rest>; only /my-files is synced, other Drive roots are rejected. A path not starting with a Drive root is taken relative to the sync folder. E.g. /my-files/notes.txt | |
| content | Yes | UTF-8 text content to write. The file will be created or overwritten. | |
| confirmed | No | Must be true; only after the user approved this exact action. |