read_file_lines
Read a specific range of lines from a text file using 1-based start and end indexes, enabling targeted inspection of local files without loading the entire file.
Instructions
Read a specific range of lines from a text file (1-based line indexing).
Args:
path: Relative or absolute path to the file.
start_line: 1-based start line index.
end_line: 1-based end line index (inclusive).
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 | ||
| end_line | Yes | ||
| start_line | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |