set_state
Control LIFX smart lights by adjusting power, color, brightness, and infrared settings for selected lights.
Instructions
Set the state of lights
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": {
"token": "<token>"
},
"name": "set_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | LIFX API token | |
| selector | No | Selector for filtering lights (default: 'all') | |
| power | No | Power state | |
| color | No | Color string | |
| brightness | No | Brightness (0.0 to 1.0) | |
| duration | No | Duration in seconds | |
| infrared | No | Infrared brightness (0.0 to 1.0) | |
| fast | No | Fast mode (skip confirmation) |