Upload a file to storage
upload_storage_fileSave a file into a bucket. Pass source_url (a public https download link, e.g. a chat attachment link; up to 100 MB, PDFs and zips fine), or the content as text (notes, JSON, CSV, code, HTML), or as base64 (up to 3 MB). If the key already exists the upload is refused until the customer confirms the overwrite (confirm: true). For files over 100 MB, or chat attachments you cannot send as text or a link, call storage_upload_link and give the customer its dashboard_upload_url (drag and drop).
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": {
"service_id": "<service_id>",
"region": "<region>",
"bucket": "<bucket>",
"key": "<key>"
},
"name": "upload_storage_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Where to save it, e.g. "reports/2026/sales.csv". Slashes make folders. | |
| text | No | File content as plain text (UTF-8). Use this or content_base64. | |
| bucket | Yes | Bucket name (3-63 lowercase letters, digits, dots, hyphens). | |
| region | Yes | Region code from storage_plans or storage_overview, e.g. fra (Frankfurt), usa (Virginia), sgp (Singapore). | |
| confirm | No | Must be true. Set it only after the customer has explicitly confirmed this exact change. | |
| service_id | Yes | Object Storage service id, as returned by the matching list tool. | |
| source_url | No | Public https link the server downloads the file from (up to 100 MB). Use this or text or content_base64. | |
| content_type | No | Optional MIME type, e.g. text/csv. Guessed from the key when omitted. | |
| content_base64 | No | File content as base64, up to 3 MB decoded. Use this or text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| bytes | No | ||
| bucket | No | ||
| overwritten | No |