shelly_switch_toggle
Toggle a Shelly switch or relay channel by device and optional channel, returning the post-action channel state; the action is audit-logged.
Instructions
Toggle a switch/relay channel. Returns the post-action ChannelState. 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>"
},
"name": "shelly_switch_toggle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| channel | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||