ha_call_service
Call a Home Assistant service immediately to test automations or buttons, previewing the action first and executing only after confirmation.
Instructions
Call a Home Assistant service right now, e.g. to test what a key will do. Acts on the real home: call with confirm=false first and get the user's OK.
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": {
"service": "<service>"
},
"name": "ha_call_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Extra service data. | |
| confirm | No | false: describe only; true: call it. | |
| service | Yes | domain.service, e.g. light.toggle. | |
| entity_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |