read_file_lines
Read specific sections of large files with line numbers using offset and limit parameters. Provides numbered output similar to 'cat -n' for easy navigation and reference.
Instructions
Read a file with line numbers, supporting offset and limit for navigating large files. Returns content formatted like 'cat -n'. Use this instead of read_file when you need line numbers or want to read a specific section. Requires allow_file_read in ~/.syscontrol/config.json.
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_file_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or home-relative path to the file. | |
| limit | No | Maximum number of lines to return (1–2000, default 200). | |
| offset | No | 1-based line number to start reading from (default 1). |