set_light
Control a Philips Hue light by turning it on or off, adjusting brightness from 0 to 100, and setting color using hex or xy coordinates.
Instructions
Set a specific Hue light's state. You can control on/off, brightness (0-100), and color (hex string like #FF0000 or xy coordinates).
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": {
"light_id": "<light_id>"
},
"name": "set_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Turn the light on (true) or off (false) | |
| light_id | Yes | The light ID (from list_lights) | |
| color_hex | No | Color as hex string (e.g. #FF0000 for red) | |
| brightness | No | Brightness percentage (0-100) | |
| color_xy_x | No | CIE x color coordinate | |
| color_xy_y | No | CIE y color coordinate |