Read files the index named (several at once)
readFetch numbered lines from multiple indexed files in one call, with optional line ranges and pagination, after find, search, or sql identifies targets.
Instructions
The numbered lines of the files named - several files in one call, from the index, each line as path:line. Use it after find, search or sql have named the files you want, for every file at once, in place of one Read per file. from and to cut every file to a line range; lists in both name several ranges in one call, paired in order (from [559, 1938], to [610, 1975] reads 559-610 and 1938-1975), for the windows around several places in a file - never one read per range. A file over 400 lines, or past the result's budget, comes back a page at a time, with more saying where its next page starts, and the result's next lists the read calls that fetch the rest of every file cut short - make them, all in one reply. A path the index does not hold comes back as a miss beside the others. The result includes a 'usage' field, a one-line receipt of tokens returned and files.
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": {
"paths": "<paths>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last line to return, in every file named - or a list, one per range, paired with from. Default the end. | |
| from | No | First line to return, in every file named - or a list, one per range, paired with to. Default 1. | |
| path | No | Absolute path to the repository root to read from. Defaults to the server's configured root; set it to target a specific repo when a session spans more than one. | |
| paths | Yes | Repo-relative paths, as find, search and sql cite them - every file you want, in one call. |