update_global_source_element
Preview and apply updated style, config, events, bindings, or responsive overrides for a single element in a global source, showing a diff for confirmation before changes take effect.
Instructions
Update a single element within a global source. Two-step process: STEP 1: Call with dry_run=true (default) → returns diff of what will change. STEP 2: Show the diff to the user and ask for confirmation. NEVER proceed without explicit user approval. STEP 3: Only after user confirms, call again with dry_run=false to apply. IMPORTANT: You MUST show the diff to the user and get explicit "yes/ok/confirm" before calling with dry_run=false. Skipping confirmation risks data loss. Merge rules: style/config/specials = shallow merge, responsive = merge by bp key. events/bindings = REPLACE the whole array — pass the COMPLETE list (read it first); entries are auto-normalized (id + eventName filled in).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | CSS style properties to merge | |
| config | No | Config properties to merge | |
| events | No | Complete events array (replaces existing) | |
| dry_run | No | Preview only (true) or apply changes (false). Defaults to confirm_mode setting. Use toggle_confirm_mode to change default. | |
| bindings | No | Complete bindings array (replaces existing) | |
| specials | No | Specials to merge (text, custom_class, custom_css) | |
| component | No | Component hint for faster lookup | |
| element_id | Yes | Element ID to update (e.g. 'TEXT-3', 'BUTTON-1') | |
| responsive | No | Responsive overrides (e.g. {bp1: {style: {...}}}) | |
| global_source_id | Yes | Global source ID |