Read a file
myio_file_readDownload files from a myIO controller over the local network, returning text or binary previews and optional base64 content for editor/admin users.
Instructions
Download a file from the controller. Text files come back as text (truncated at max_bytes, default 64 KB); binary files as size + hex preview, or base64=true for the content (max 512 KB). Editor/admin level.
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": "myio_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vol | No | q = internal flash (GIGA/Opta default), s = SD card (the only volume on a Due) | |
| path | Yes | ||
| base64 | No | ||
| server | No | controller name (default Ground floor) | |
| max_bytes | No |