Update A2UI Data Model
a2ui_update_dataUpdates an A2UI surface's data model to refresh bound components by replacing, merging, or removing keys in real time.
Instructions
Update the data model of an A2UI surface.
The data model provides dynamic values that components can bind to using dataBinding.
Operations:
replace: Completely replace the data model
merge: Shallow merge with existing data
remove: Delete specified keys
Example: { "surface_id": "booking_form", "operation": "merge", "data": { "userName": "John Doe", "selectedDate": "2025-01-15", "guestCount": 4 } }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to apply to the surface's data model | |
| operation | No | How to apply the data: 'replace' (overwrite), 'merge' (shallow merge), 'remove' (delete keys) | merge |
| surface_id | Yes | Surface ID to update |