tuya_send_command
Send custom commands to Tuya smart devices by device ID or name. Provide a JSON string of commands to control device functions directly.
Instructions
Send custom commands to a Tuya device by device_id or name (e.g. 'Living Room Light'). commands must be a JSON string like: [{"code": "switch_1", "value": true}]
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>",
"commands": "<commands>"
},
"name": "tuya_send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| device_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |