switch_control
Toggle a light switch on or off by specifying the switch name and the action (on/off).
Instructions
Turn a light switch on or off. name: partial or full name of the switch (e.g. 'bedroom', 'living room') action: 'on' or 'off'
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": {
"name": "<name>",
"action": "<action>"
},
"name": "switch_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |