action
Execute a specific accessibility action on a UI element using its exact name from the snapshot actions list. Use this when click() fails or a different verb is needed.
Instructions
Perform a raw accessibility action by exact name.
Only call this when the element shows actions=[...] in snapshot()
output AND click() either failed silently or is not the right verb.
Use the exact action name shown in the snapshot — do not guess.
Example: an element showing actions=[expand, collapse] can be acted
on with action(element_id, "expand").
Args:
element_id: The element ID.
action_name: Exact action name from the snapshot actions=[...] list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | ||
| action_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |