control_device
Send any command with flexible parameters to smart-home devices across vendors. Control AC temperature, TV volume, curtains, and fans through one standardized tool.
Instructions
Generic device control — send any command with arbitrary params. Use for AC (set_temperature, set_mode), TV (set_volume, set_channel, set_source), curtains (set_position), fans (set_speed), etc.
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": {
"target": "<target>",
"command": "<command>"
},
"name": "control_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Command parameters as key-value pairs | |
| target | Yes | Device/group identifier | |
| command | Yes | Command name: set_temperature, set_mode, set_fan_speed, set_speed, set_position, set_volume, set_channel, set_source |