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.
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) |