file_read
Read a text file, optionally by line range, with byte limits and truncation details; binary content is refused unless an encoding is supplied.
Instructions
Read a text file, optionally a bounded line range.
Line numbers are 1-based and inclusive. Omitting both returns from the
first line. A byte limit smaller than the range truncates honestly:
truncated, truncation_reason and next_start_line say where to resume. A
UTF-8 byte-order mark is preserved and line endings are returned exactly
as stored. Binary content is refused with BINARY_CONTENT_REFUSED unless
an encoding is named. Read-only; no history is recorded. With a
workspace rooted at the filesystem root, the reported path keeps its
leading '/' so it is exactly the absolute path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No | ||
| end_line | No | ||
| max_bytes | No | ||
| start_line | No |