read_file
Read file contents from a specified path, returning up to 32,000 characters. Useful for viewing config files, logs, scripts, and notes.
Instructions
Read the text contents of a file at the given path. Returns up to max_chars characters (default 16,000, max 32,000). Useful for reading config files, logs, scripts, notes, etc.
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 | Absolute or home-relative path to the file (e.g. '~/.zshrc', '/etc/hosts'). | |
| max_chars | No | Maximum characters to return (1000–32000, default 16000). Truncates with an indicator if exceeded. |