Write file
write_fileSave a small file you write yourself into a bucket (up to 5 MB): text (HTML, JSON, CSV, Markdown, SVG) or base64 for binary. An existing file at the same path is replaced. For files on the person's computer use get_file_upload_url; for a file on the web, import_file.
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": {
"project": "<project>",
"bucket": "<bucket>",
"path": "<path>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the bucket, e.g. data/prices.json | |
| text | No | Text content | |
| base64 | No | Binary content as base64 (instead of text) | |
| bucket | Yes | Bucket name | |
| project | Yes | Project slug | |
| contentType | No | Content type (optional; guessed from the file name) |