connect_bulb
Connect to a smart bulb by IP address, supporting both real Yeelight bulbs and mock bulbs for local testing. Specify the bulb type and optional port to establish a connection.
Instructions
Connect to a smart bulb at a given IP address. Supports both real Yeelight bulbs and mock bulbs for testing.
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": {
"ip": "<ip>"
},
"name": "connect_bulb"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | The IP address of the smart bulb (e.g., '192.168.1.15' or '127.0.0.1') | |
| port | No | Optional TCP port. Defaults to 55443 for Yeelight and 9999 for mock. | |
| type | No | The bulb driver type. Use 'mock' for local simulation testing, and 'yeelight' for actual Yeelight WiFi bulbs. | mock |