Update event script
update_eventModify an existing Domoticz event by replacing its name, interpreter, type, and XML source. Requires explicit confirmation to apply high-impact changes.
Instructions
Update script. Cross-ref: domoticz://event/{event_id}. Requires confirm=True.
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": {
"event_id": "<event_id>",
"name": "<name>",
"interpreter": "<interpreter>",
"event_type": "<event_type>",
"xmlstatement": "<xmlstatement>"
},
"name": "update_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Event script name | |
| confirm | No | Explicitly confirm this high-impact operation | |
| event_id | Yes | Canonical Domoticz event ID | |
| event_type | Yes | Domoticz event type | |
| eventstatus | No | 1 to enable the event, 0 to disable it | 1 |
| interpreter | Yes | Domoticz event interpreter | |
| xmlstatement | Yes | Replacement event source or Blockly XML |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional Domoticz response title | |
| status | Yes | Status returned by Domoticz, normally OK |