Write a file
myio_file_writeUpload text or binary files to a myIO controller, creating or overwriting them and optionally creating missing parent folders.
Instructions
Upload a file to the controller (creates or overwrites; the write is not atomic). content = text (UTF-8) or base64 = binary. make_dirs=true creates missing parent folders. System files (network, passwords, licence, cloud keys, web UI folders htm/ js/, slot folders) need MYIO_WRITE=admin. For flows.jsn / prog/N.txt prefer myio_flow_save / myio_script_save (validated + reloaded). 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_write"
}
}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) | |
| content | No | ||
| make_dirs | No |