ParecodeExpand
Read a specific line range from a file with optional context padding, following a code search match. Returns estimated token count to manage context budget.
Instructions
Read a specific line range of a file — the natural follow-up to a ParecodeSearch match or an omittedLineRanges entry it returned. Use instead of a full-file Read (or Read with offset/limit) when you already know roughly where the code lives and just need more lines around it. Give the known (file, startLine, endLine) and optionally pad with contextBefore/contextAfter; out-of-range lines are clamped silently and the returned lineRange reflects the actual slice. Reports estimatedTokens in the same form as ParecodeSearch so you can budget before consuming. Read-only — to change code use ParecodeEdit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file to read (typically the `file` from a ParecodeSearch match). | |
| startLine | Yes | Starting line (1-based, inclusive) | |
| endLine | Yes | Ending line (1-based, inclusive) | |
| contextBefore | No | Additional lines to include before startLine. Default 0. | |
| contextAfter | No | Additional lines to include after endLine. Default 0. |