Read file ranges
project_read_rangesRead up to 16 disjoint line ranges from the same file in one call to avoid repeated round-trips when gathering targeted segments.
Instructions
Read multiple disjoint line ranges of the SAME file in a single call (max 16 ranges). Use when: you need several disjoint segments of one file (e.g. around search hits) without multiple round-trips. Avoid when: you need the whole file (project_read_file) or different files (project_read_batch). Speed: fast; reuses the per-range read_file cache. Output: file_read_ranges: ranges[] with text/truncated/next_start_line. Batch-safe: no
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | Yes | ||
| relative_path | Yes | Path inside the workspace (relative, or absolute inside the workspace) |