Read File
file_readRead a file's contents as UTF-8 text or base64 for binary data, with configurable byte limits and path-based access controls.
Instructions
Read a file's contents as utf8 text or base64 (for binary data), capped at maxBytes. Path is checked against MACCTL_ALLOWED_PATHS/MACCTL_DENIED_PATHS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No | Defaults to utf8. | |
| maxBytes | No | Defaults to 1,000,000 bytes. |