read_region
Read a specific line range from a file to fetch only the code you need, with numbered source lines. Use after list_exports or file_outline for targeted code access.
Instructions
Read a specific line range from a file (max 200 lines per call). Returns numbered source lines. Use after list_exports or file_outline to read only the code you need instead of the whole file.
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": {
"path": "<path>",
"start": "<start>",
"end": "<end>"
},
"name": "read_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End line (1-based, max start+199) | |
| path | Yes | Absolute path to a source file | |
| start | Yes | Start line (1-based) |