set_color
Change a Tuya or Smart Life light's color directly on the local network using a hex value like '#FF8800' or 'f80'. Avoids cloud round-trips for color control.
Instructions
Set a light's colour from a hex string such as '#FF8800' or 'f80'.
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>",
"color": "<color>"
},
"name": "set_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||