Read file
read_fileRead files within an allowed root, supporting utf8 text with line offset/limit and base64 binary encoding.
Instructions
Read a file inside an allowed root. Use encoding=base64 for binary. offset/limit are 1-based line numbers for utf8.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or ~ path to a file | |
| limit | No | Max lines to return (utf8 only) | |
| offset | No | First line to return (utf8 only) | |
| encoding | No | utf8 for text, base64 for binary | utf8 |