Read a chunk of a file
readRetrieve precise file chunks by symbol, line range, markdown section, or log tail/filter to avoid full-file scans; omit parameters to get the file index.
Instructions
Only a chunk of a file: the function or class symbol (PHP, TS, JS, Vue, Python; list = several in one call), the section of a .md, a range lines, or from a log the last tail or those containing contains; without anything, the file index. Use it instead of Read, cat or sed. Read-only, inside the root; does not read secrets.
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": {
"file": "<file>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | path relative to the root | |
| tail | No | logs: last N lines | |
| lines | No | range «120-180» | |
| format | No | concise = essentials only | detailed |
| symbol | No | function, class or title; list = several | |
| contains | No | logs: lines containing this text | |
| max_lines | No |