$ui
$ui is an object that represents the UI that defines the action. components placed in the UI can be retrieved as property values. It also indicates the state of the component as it appears in the UI after the action is executed.
Obtaining component values during action execution | Example: const val = $ui.text_field_1.value; |
Set component values after action execution | Example: $ui.text_field_1.value = val; |
The above shows an example of getting the value of a text field when an action is executed and an example of setting the value of a text field after the action is executed.
A component has not only a value, but also various other properties such as color, variants, etc. that decorate the component. They can be acquired/configured in the same way in the action.