update_common_event
Update a common event's properties such as name, trigger, switchId, or command list. Validates command structure to prevent invalid writes, with optional force override.
Instructions
Update a common event's properties (shallow merge into the existing record). Use for name, trigger, switchId, or to replace the whole command list. A structurally invalid command list refuses the write (nothing is saved) — pass force: true to override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Write even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block regardless. | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| updates | Yes | Object containing common event properties to update (name, trigger, switchId, list) | |
| commonEventId | Yes | The ID of the common event to update |