file_write
Create or overwrite a file by sending UTF-8 text or small base64 content directly in the tool call, and optionally allow unencrypted writes inside end-to-end encrypted folders.
Instructions
Create or overwrite a file from content you produce here: UTF-8 text in content, or small binary as base64 in content_base64. These bytes travel inside the tool call, so a file that already exists on YOUR disk - anything more than ~1 MB - must NOT be sent this way: call file_upload_ticket instead and stream it with curl. A path inside an end-to-end encrypted folder is refused with E2E_PLAINTEXT_REFUSED, because filex would store the bytes there unencrypted; set allow_plaintext only when that is what the person wants.
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>"
},
"name": "file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | adapter://file path to create or overwrite | |
| content | No | UTF-8 text content (use content_base64 for binary) | |
| content_base64 | No | base64-encoded binary content | |
| allow_plaintext | No | only for a path inside an end-to-end encrypted folder: store the bytes there UNENCRYPTED on purpose (filex holds no key). Without it such a write fails with E2E_PLAINTEXT_REFUSED |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes |