repo_read
Read expanded source text around a citation from indexed chunks, not the filesystem. Use after a code search to view more lines around a citation, with optional context lines.
Instructions
Read a widened window of source text around a citation, from the indexed chunks rather than the filesystem -- works over HTTP, from a different machine, with no shared filesystem, because chunks have already passed secret-path exclusion and redaction. Read-only, deterministic, zero side effects. When to use: use after repo_search or repo_neighbours to see more lines around a [cite: path:start-end] citation, with optional context lines each side. When NOT to use: do not use for a path never indexed, or an absolute or '..' path (both are refused); use repo_search or repo_find_symbol to find a valid path first. Output: [cite: path:start-end] header plus the text, bounded in size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative path exactly as it appears in a [cite: path:start-end] header. Absolute paths and '..' segments are refused. | |
| context | No | Extra lines of context on each side of the range (default 0, max 500). | |
| end_line | No | Last line to read (default: start_line). | |
| start_line | No | First line to read (default 1). |