call_service
Control Home Assistant smart home devices by calling services to turn on lights, adjust climate settings, or operate switches with specific parameters.
Instructions
Call a Home Assistant service (e.g., turn on a light, set climate)
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": {
"domain": "<domain>",
"service": "<service>"
},
"name": "call_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Service domain (e.g., 'light', 'switch', 'climate') | |
| service | Yes | Service name (e.g., 'turn_on', 'turn_off', 'set_temperature') | |
| entity_id | No | Target entity ID | |
| data | No | Additional service data (e.g., brightness, temperature) |