Read File Lines
read_file_linesRead a specific range of lines from a file, useful for accessing large files without loading the entire content.
Instructions
Read a specific line range from a file. Useful for large files where reading the whole thing would exceed limits.
Args:
path (string): Path to the file.
start_line (number): 1-indexed starting line (inclusive).
end_line (number): 1-indexed ending line (inclusive).
Returns: the requested lines, each prefixed with its line number.
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_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "read_file_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| end_line | Yes | 1-indexed ending line, inclusive | |
| start_line | Yes | 1-indexed starting line, inclusive |