read_object
Read and display contents of S3 objects, including text, Excel, Parquet, PDF, and image formats. Supports metadata for binary files.
Instructions
Read and display the contents of an object in the connected S3 bucket. Supported formats:
Text: .txt, .csv, .json, .jsonl, .xml, .html, .md, .log, .yaml, .yml
Excel: .xlsx, .xls — returns all sheet data as tables
Parquet: .parquet — returns schema + first 50 rows
PDF: .pdf — extracts text from first 10 pages
Images: .png, .jpg, .jpeg, .gif, .webp — returns image content
Unknown/binary: returns file metadata only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | Max characters to return for text files (default: 10000). | |
| object_key | Yes | The S3 object key (path/filename) to read. | |
| sheet_name | No | For Excel: specific sheet name to read. Reads all sheets if not provided. | |
| bucket_name | No | Override the connected bucket name (optional). |