Write a script
myio_script_saveWrite script slot source and recompile it on the controller, returning compile errors with line and column plus the new state; optionally set enabled to rewrite the #enabled directive.
Instructions
Write the source of script slot N (prog/N.txt) and recompile it on the controller; the answer is the compile result (error with line:col and the source line) and the new state. enabled=true|false rewrites the #enabled directive. The file is the truth (#name, #every 1s, #enabled, #onboot header). Max size: 8 KB on GIGA, 4 KB on Opta. Language reference: myio_reference topic=script. 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": {
"id": "<id>",
"source": "<source>"
},
"name": "myio_script_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| server | No | controller name (default Ground floor) | |
| source | Yes | ||
| enabled | No |