update common event
update_common_eventUpdate a common event's name, trigger, or condition switch with a preview-first change set; pass apply=true to commit validated edits.
Instructions
Update a common event's name, trigger (none|autorun|parallel) or condition switchId. Its command list is edited with the logic tools ({commonEventId}).
Preview-first: returns a change set (semantic + native diff, validation). Pass apply=true to commit immediately when the preview is clean.
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": {
"commonEventId": "<commonEventId>"
},
"name": "update_common_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| apply | No | Commit right after a successful preview (non-destructive operations only; needs --allow-write; warnings also need acknowledgeWarnings). Default false = preview only. | |
| trigger | No | ||
| switchId | No | ||
| allowScript | No | true ONLY if the user explicitly asked to insert JavaScript (script commands, script conditions/operands, route scripts). | |
| description | No | Optional description stored in the transaction log | |
| commonEventId | Yes | Common event ID | |
| acknowledgeWarnings | No | Accept validation warnings when apply=true. Review them with the user first. |