ctx_read
Read specific lines from a file with line numbers by giving a start and end range. Requests exceeding the token budget return the file outline instead, keeping context small.
Instructions
Read lines of a file with line numbers: give start/end. Asking for a whole file that exceeds budget_tokens returns its outline instead. Paths are relative to the project root; nothing outside it is readable.
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": "ctx_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last line (inclusive). | |
| path | Yes | File path relative to the project root. | |
| force | No | Return the lines even if they were already returned unchanged in this session. | |
| start | No | First line (1-based). | |
| budget_tokens | No | Hard cap on the tokens returned (estimate; default 3000). |