Read S3 object
s3_read_objectRead S3 object content with capped range requests to avoid streaming large files. Returns UTF-8 text or base64 encoding.
Instructions
Read object content. Uses a Range request capped by maxBytes so large objects never stream in full. encoding=auto returns UTF-8 text when decodable, otherwise base64.
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": {
"bucket": "<bucket>",
"key": "<key>"
},
"name": "s3_read_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key | |
| bucket | Yes | Bucket name | |
| encoding | No | How to encode the body (default: auto) | |
| maxBytes | No | Max bytes to read (default: 262144) |