Read a file
read_fileRead text file contents from allowlisted paths, enforcing a size cap for safe Mac file observation.
Instructions
Read a text file's contents (capped at MACOS_MAX_FILE_BYTES). Honours the path allowlist.
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 (supports ~ for home). |