read_file_lines
Read specific lines from a file by specifying start and end line numbers, with out-of-range values automatically clamped to the file's actual length.
Instructions
Read a range of lines (1-based, inclusive) from a file.
Out-of-range numbers are clamped to the file's actual length.
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_file_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Last line number (1-based, inclusive). | |
| path | Yes | File to read. | |
| start | Yes | First line number (1-based). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |