Read an object
read_objectReads a text object's content. Large or binary objects come back as a download URL instead. To sample a large text file, pass head or tail for whole lines from either end, or offset and length to read a byte window anywhere in it. maxBytes lowers the size of the answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Full object key. | |
| head | No | Return only the first N lines. | |
| tail | No | Return only the last N lines. | |
| bucket | Yes | Bucket name. | |
| length | No | How many bytes to read from offset; defaults to the answer's byte ceiling. | |
| offset | No | Byte to start reading at, 0-based. Not combinable with head or tail. The window is not line-aligned. | |
| maxBytes | No | Cap the bytes this answer may carry. Only lowers the server's own ceiling, never raises it. | |
| connectionId | Yes | Connection id from list_connections. |