Read file
project_read_fileRead a single text file or a specific line range, returning file contents and a next line pointer when truncated for large files.
Instructions
Read a text file, optionally by line range (1-based). The result carries next_start_line when truncated. Use when: you need the contents of one file, or one line range of a large file. Avoid when: you need to read 2+ files (project_read_batch) or only need metadata (project_get_file_info). Speed: very fast on repeat; cache validated by mtime+size. Output: file_read: text, first_line, last_line, total_bytes, next_start_line. Batch-safe: yes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | No | ||
| max_bytes | No | ||
| start_line | No | ||
| line_numbers | No | ||
| relative_path | Yes | Path inside the workspace (relative, or absolute inside the workspace) |