read_file_range
Read a specific line range from a UTF-8 text file to extract only the needed content, avoiding the overhead of reading the entire file when the relevant location is already known.
Instructions
Read a specific one-indexed line range from a UTF-8 text file. Prefer this over reading a whole file when the relevant location is already known.
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": {
"workspace": "<workspace>",
"relative_path": "<relative_path>",
"start_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "read_file_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | Yes | ||
| workspace | Yes | ||
| start_line | Yes | ||
| relative_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| end_line | Yes | ||
| truncated | Yes | ||
| workspace | Yes | ||
| start_line | Yes | ||
| relative_path | Yes |