read_file
Reads file contents from local storage, with options to specify a line range (1-based) and encoding (utf8, base64, or hex). Useful for accessing specific portions of a file.
Instructions
Read file contents. Supports line range (1-based).
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 |
|---|---|---|---|
| path | Yes | File path. | |
| encoding | No | Encoding: utf8|base64|hex. Default: utf8. | |
| end_line | No | Last line (1-based, inclusive). | |
| start_line | No | First line (1-based). |