Upload a large file in pieces
upload_storage_partSend a file in small pieces when you can only hand over text: call once per piece with the same upload_id (any 8-40 letters/digits you invent), part 1, 2, 3 ... and each piece as base64 (up to 700 KB decoded). Set done: true on the LAST piece (include it in that call) and the server joins all pieces into one file at key (up to 100 MB total). Overwriting an existing key needs confirm: true on the last call. Slow for big files; prefer source_url, the ChatGPT file field or storage_upload_link when possible. Pieces are kept under .upload-parts/<upload_id>/ until the last call.
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>",
"upload_id": "<upload_id>",
"part": "<part>",
"content_base64": "<content_base64>"
},
"name": "upload_storage_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Final file path, e.g. "updates/report.pdf". | |
| done | No | true on the last piece: joins everything into key. | |
| part | Yes | Piece number, starting at 1, no gaps. | |
| 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. | |
| upload_id | Yes | Your own id for this upload, the same on every piece. | |
| service_id | Yes | Object Storage service id, as returned by the matching list tool. | |
| content_type | No | Optional MIME type for the final file. | |
| content_base64 | Yes | This piece as base64 (up to 700 KB decoded). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| part | No | ||
| bytes | No | ||
| complete | No | ||
| overwritten | No | ||
| stored_parts | No |