update_global_source_elements
Batch update multiple elements in a global source. Preview the diff with a dry run, then apply changes after explicit user confirmation.
Instructions
Batch update multiple elements in one global source. Two-step process: STEP 1: Call with dry_run=true (default) → returns per-element diff. STEP 2: Show all diffs 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. Same merge rules: style/config/specials = shallow merge, events/bindings = replace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only (true) or apply changes (false). Defaults to confirm_mode setting. | |
| updates | Yes | Array of element updates | |
| component | No | Component hint for faster lookup | |
| global_source_id | Yes | Global source ID |