read_lines
Read specific lines from a large text file by specifying start and end line numbers. Helps access file sections without loading the entire file.
Instructions
Read a slice of lines from a text file — useful for files too large for read_file to return whole.
Args: path: File path relative to the root. start: First line to read (1-based). end: Last line to read (inclusive). 0 means "to end of file".
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>"
},
"name": "read_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| start | No | ||
| end | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |