Switch a rule
set_automation_stateSwitch a rule off, to rehearsing (judges live tickets and records what it would have done), or on (acts). Rehearsing and on need an active plan. When the new state is rehearsing or on, it acts only with the human's agreement: called without confirm it returns confirmation_required and a summary of what it would do, and called with confirm: true it acts.
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>",
"expectedVersion": "<expectedVersion>"
},
"name": "set_automation_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The rule's id. | |
| state | Yes | ||
| confirm | No | ||
| expectedVersion | Yes | The rule version your change starts from (get_automation's version). A stale one is refused with version_conflict and the current version. |