file_read
Read any file's full contents or a specific line range via JSON responses, avoiding shell escaping issues. Use start_line and end_line to target large files efficiently.
Instructions
Read an entire file or a specific line range. Content comes back through JSON — no shell, no escaping issues. Use start_line / end_line for large files. Output is capped at 2000 lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file. Tilde (~) is expanded to the proot home directory. | |
| end_line | No | 1-indexed last line to return (inclusive). If omitted, read to end of file. | |
| start_line | No | 1-indexed first line to return. If omitted, read from line 1. |