Write synced text file
drive_write_fileWrites UTF-8 text files up to 5 MB to a local Proton Drive sync folder without Proton login, creating parent directories. Desktop app syncs changes; overwrites need approval.
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. Overwriting an existing file needs the user's approval, which the server asks for itself. For binary content use drive_upload. The server asks the user to approve this itself when the file already exists (it would be overwritten).
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": {
"path": "<path>",
"content": "<content>"
},
"name": "drive_write_file"
}
}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 | Optional and ignored: the server asks the user to approve this itself. You do not need to send it. |