Skip to content

Get Element Node

UI/Elements

Gets an element's data from the page

a2ui_get_elementstd
Inputs1
Outputs2
Security exposureUnrated
Packagestd

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

1

Element

String
element_ref

Reference to the page element

Output Pins

2

Element

Struct
element

The element data

A2UIElementA2UIElement6 fields
idstringrequired

Unique identifier for this element

styleanyOf (2)

Optional style configuration

variant 1Stylevariant

Complete style definition

classNamestring | null
backgroundanyOf (2)
variant 1Backgroundvariant

Background type

variant 2nullvariant
borderanyOf (2)
variant 1Bordervariant

Border styling

variant 2nullvariant
shadowanyOf (2)
variant 1Shadowvariant

Shadow styling. The JSON representation intentionally matches the original frontend contract. The previous `{ boxShadows, textShadow }` shape is still accepted during deserialization and normalized to these fields.

variant 2nullvariant
paddinganyOf (2)
variant 1Spacingvariant

Spacing (padding/margin). Edge fields are the canonical frontend JSON shape; strings and `{ "value": "..." }` remain accepted for compatibility.

variant 2nullvariant
+46 more fields
variant 2nullvariant
childrenanyOf (2)

Child component references

variant 1Childrenvariant

Children definition - explicit list or template

variant 1objectvariant
explicitListArray<string>required
variant 2objectvariant
templateobjectrequired
variant 2nullvariant
actionsarray | null

Actions that can be triggered on this component

itemsActionarray item

Action definition for user interactions

namestringrequired
contextMap<string, BoundValue>
default {}
*BoundValuemap value

Represents a value that can be either a literal or a data path binding

targetSurfaceIdstring | null
eventHandlersobject | null

Ordered actions bound to named component events. Legacy `actions` remains the fallback.

*Array<Action>map value
itemsActionarray item

Action definition for user interactions

namestringrequired
contextMap<string, BoundValue>
default {}
targetSurfaceIdstring | null
__element_idstring | null

Internal element ID for workflow operations (added at runtime)

Exists

Boolean
exists

Whether the element exists

Node Info

Internal name
a2ui_get_element
Category
UI/Elements