call_service
Invoke Home Assistant services via native REST API to control entities, set attributes, or trigger automations without editing YAML.
Instructions
Call any Home Assistant service via the native REST API.
Example: domain='light', service='turn_on', data={'entity_id': 'light.kitchen', 'brightness': 200}.
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 |
|---|---|---|---|
| data | No | ||
| domain | Yes | ||
| service | Yes |