Download a file in pieces (any type)
download_storage_partGet any file from a bucket as base64, in pieces, when your own tools cannot open the download link: PDFs, images, zips and other binary files as well as text. Each call returns up to 512 KB starting at offset (default 0); keep calling with the returned next_offset until done is true, then join the pieces in order and decode them. Check total_bytes first: a file over about 5 MB needs many calls, so for big files use storage_file_link instead. To find the file first, use search_storage_files.
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": "download_storage_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bucket | Yes | Bucket name (3-63 lowercase letters, digits, dots, hyphens). | |
| offset | No | Byte to start from (default 0). | |
| region | Yes | Region code from storage_plans or storage_overview, e.g. fra (Frankfurt), usa (Virginia), sgp (Singapore). | |
| max_bytes | No | How much to read (default 524288). | |
| service_id | Yes | Object Storage service id, as returned by the matching list tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| done | No | ||
| part | No | ||
| offset | No | ||
| bytes_read | No | ||
| next_offset | No | ||
| total_bytes | No | ||
| content_type | No | ||
| content_base64 | No |