broadcast_element_command
Broadcast real-time UI updates via WebSocket for ephemeral modifications. Demonstrates UI changes without saving them.
Instructions
Push real-time UI updates via WebSocket. Use for SHOW/DISPLAY/DEMONSTRATE requests.
Actions: update (modify element), create (ephemeral element), batch (multiple updates), delete.
Changes are EPHEMERAL (not saved). For persistent changes, use update_element or html_to_elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The type of command to broadcast | |
| element | No | UUID of the element to modify (required for update, delete, create) | |
| changes | No | Object containing attribute changes (e.g., { classes: ["bg-blue-500"], text: "Hello" }) | |
| updates | No | Array of updates for batch action: [{ element: "uuid", changes: {...} }] |