shelly_script_eval
Evaluate an expression inside a running Shelly device script and return the stringified result. Requires confirm:true for arbitrary code.
Instructions
Evaluate an expression inside a running script. Arbitrary code → confirm:true.
Returns the stringified result. Audit-logged.
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": {
"device": "<device>",
"id": "<id>",
"code": "<code>"
},
"name": "shelly_script_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| code | Yes | ||
| device | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||