Read a file from storage
read_storage_fileRead the text of one file in a bucket (notes, CSV, JSON, logs, code, HTML, SQL). Returns up to max_bytes (default 64 KB, at most 256 KB) starting at offset; for a bigger file call again with the returned next_offset. Binary files (images, PDFs, archives) are not read; use storage_file_link for those. To find the right 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": "read_storage_file"
}
}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 65536). | |
| service_id | Yes | Object Storage service id, as returned by the matching list tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| text | No | ||
| offset | No | ||
| truncated | No | ||
| bytes_read | No | ||
| next_offset | No | ||
| total_bytes | No |