ParecodeExpand
Read a specific line range from a file, typically after a search match, with optional padding for context. Clamps out-of-range lines.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"startLine": "<startLine>",
"endLine": "<endLine>"
},
"name": "ParecodeExpand"
}
}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. |