Read file
read_fileRead UTF-8 text files with optional startLine/endLine ranges and a maxBytes cap to prevent large files from flooding context; binary files are detected and refused.
Instructions
Read a UTF-8 text file on this computer. Supports partial reads via startLine/endLine and a maxBytes cap (default 200 KB) so large files never flood the context. Returns size, total line count and sha256 (pass that sha256 back to write_file/edit_file as expectedSha256 for safe concurrent edits). Binary files are detected and refused.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Short human-readable explanation (1 line, in the user's language) of what you are about to do and why. Shown to the user on the approval card. Always provide when calling mutating tools. | |
| path | Yes | ||
| agent | No | Short consistent identifier or display name of this agent (e.g. 'Claude · Лендинг', 'Тесты', 'Мой агент'). Used to separate tasks and route tray messages when multiple agents work in parallel. | |
| endLine | No | ||
| maxBytes | No | ||
| startLine | No |