Read File Range
code.read_rangeRetrieve a bounded range of lines from a file in a local project, enabling targeted code review or debugging.
Instructions
Read a bounded line range from one text file inside a project.
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": {
"projectPath": "<projectPath>",
"file": "<file>",
"startLine": "<startLine>",
"endLine": "<endLine>"
},
"name": "code.read_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| file | Yes | ||
| startLine | Yes | ||
| endLine | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| startLine | Yes | ||
| endLine | Yes | ||
| totalLines | Yes | ||
| content | Yes |