Read a file
bb_read_fileRead files from disk through Blockbench's file layer without plugin permissions. Auto encoding returns text for text files and base64 for binary, with optional forced text or base64 output.
Instructions
Read a file from disk. encoding "auto" (default) returns text for text files and base64 for binary; force it with "text" or "base64". Reading uses Blockbench's own file layer and needs no plugin permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No |