read_file
Read file contents as text or base64, with option to read only first N lines.
Instructions
Read the contents of a file. Can read as UTF-8 text or base64 encoded. Optionally read only the first N lines.
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 | Path to the file to read | |
| encoding | No | Encoding to use when reading the file | utf8 |
| lines | No | Read only the first N lines |