send_command
Send a one-off command to a device. Use dry run to preview the action; disable dry run to execute the command.
Instructions
Fire a one-off command at a device (entity). Transient (does not change saved config) but affects the device, so defaults to dry_run=True. Set dry_run=false to actually send. Body: PUT /entities/{id}/command {cmd_id, params?}.
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_id": "<device_id>",
"command": "<command>"
},
"name": "send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| params | No | ||
| command | Yes | ||
| dry_run | No | ||
| device_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||