shelly_script_put_code
Upload script code to a Shelly device, with automatic chunking for large code and append or replace modes. Requires explicit confirmation.
Instructions
Upload code into a script (chunked). Arbitrary code on the device → confirm:true.
append=false replaces the script body; true appends. Large code is split into
≤1 KB chunks automatically. Audit-logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| code | Yes | ||
| append | No | ||
| device | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||