Read a file
read_fileAccess a text file's contents, honoring the path allowlist and file size cap. Safely retrieve file data for further processing.
Instructions
Read a text file's contents (capped at MACCTL_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). |