Switch an automation on or off
set_automation_stateSwitches an automation on or off. state "disable" is the emergency stop: it takes effect at once and needs no confirmation. state "enable" switches it on, and from then on it acts on its own, so enabling needs a confirmed call: without confirmation_token the call is a preview that returns what would happen and a token for a person to approve; called again with that token, it enables. version_id (enable only) picks the version to run; the default is the newest one, which has to have been checked and deployed first.
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": {
"id": "<id>",
"state": "<state>"
},
"name": "set_automation_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id in the resource path. | |
| state | Yes | enable to switch the automation on, disable to switch it off. | |
| version_id | No | ||
| confirmation_token | No | For a call that needs approval: left out, the call does nothing and returns a preview and a token; given that token, with the same arguments, the call does it. |