read_text_lines
Read a bounded range of numbered lines from a UTF-8 text file to inspect specific areas around search results or errors without loading the whole file.
Instructions
Read a bounded range of numbered lines (1-based, up to 100 lines) from a UTF-8 text file inside the configured Owner read roots. Use when you need specific lines (for example around a line number from search_code results or an error message) rather than the whole file. For whole small files use read_text_file; for byte-based paging of large files use read_text_page. Read-only; no approval window.
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_text_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the target within the already-configured Owner read/edit roots; path alone grants no access. | |
| max_lines | No | Maximum line count, 1 to 100; default 50. | |
| start_line | No | First 1-based line to read (1 to 1000000); default 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||