click
Click an element by performing theAXPress action.
Arguments
Target element:
@ref (from snapshot) or app nameOptions
Filter by accessibility role
Filter by title
Filter by label
Filter by identifier
Which matching element to click (0-indexed)
Output as JSON
Examples
Output
The command attempts
AXPress first, then falls back to AXConfirm if press is not available.fill
Clear a text field and type new text.Arguments
Target element:
@ref or app nameText to fill into the field
Options
Filter by role (defaults to
TextField when using app name)Filter by title
Filter by label
Which matching element to fill
Output as JSON
Examples
Output
The
fill command focuses the element, clears existing content, then sets the new value.type
Type text into an element without clearing existing content.Arguments
Target element:
@ref or app nameText to type
Options
Same asfill command.
Examples
Output
check
Check a checkbox or toggle (idempotent - only clicks if not already checked).Arguments
Target element:
@ref or app nameOptions
Filter by role (defaults to
CheckBox when using app name)Filter by title
Filter by label
Which matching element to check
Output as JSON
Examples
Output
uncheck
Uncheck a checkbox or toggle (idempotent - only clicks if currently checked).Arguments and options
Identical tocheck command.
Examples
Output
select
Select an option from a popup button or combo box.Arguments
Target element:
@ref or app nameTitle of the option to select
Options
Filter by role (defaults to
PopUpButton when using app name)Filter by title
Filter by label
Which matching element to use
Output as JSON
Examples
Output
The command clicks the popup button, waits briefly for the menu to appear, then clicks the menu item matching the option title.
focus
Set keyboard focus to an element.Arguments
Target element:
@ref or app nameOptions
Standard filter options:--role, --title, --label, --identifier, --index, --json
Examples
Output
hover
Move the mouse cursor to the center of an element.Arguments
Target element:
@ref or app nameOptions
Standard filter options (no--identifier support)
Examples
Output
Hovering can trigger tooltips and hover states but does not click the element.
action
Perform an arbitrary accessibility action on an element.Arguments
Target element:
@ref or app nameAccessibility action to perform (e.g.,
AXPress, AXConfirm, AXIncrement)Options
Standard filter options:--role, --title, --label, --identifier, --index, --json
Examples
Output
Common actions
AXPress- Click/activateAXConfirm- Confirm/submitAXShowMenu- Show context menuAXIncrement- Increase valueAXDecrement- Decrease valueAXRaise- Bring to frontAXCancel- Cancel operationAXPick- Pick/select item