Read File
read_fileRetrieve a file's contents as decoded text or raw base64 bytes, with configurable encoding and a read cap to avoid oversized context.
Instructions
Read a file's contents.
Text files are decoded with encoding (errors replaced). Set
binary=True to get the raw bytes base64-encoded instead. Reads are
capped at max_bytes to avoid dumping huge files into context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| binary | No | ||
| encoding | No | utf-8 | |
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |