read_file
Reads a bounded UTF-8 text file or specific line range, providing structured line metadata for precise content access.
Instructions
Read a bounded UTF-8 text file or 1-based line range with structured line metadata. Use shell tools for binary or very large files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Base directory. Defaults to the agent user home directory. | |
| path | Yes | File path. Relative paths are resolved against cwd. | |
| endLine | No | Inclusive last line to return. | |
| startLine | No | First line to return, using 1-based indexing. |