click
Click an element by performing theAXPress action.
Arguments
string
required
Target element:
@ref (from snapshot) or app nameOptions
string
Filter by accessibility role
string
Filter by title
string
Filter by label
string
Filter by identifier
integer
default:"0"
Which matching element to click (0-indexed)
boolean
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
string
required
Target element:
@ref or app namestring
required
Text to fill into the field
Options
string
Filter by role (defaults to
TextField when using app name)string
Filter by title
string
Filter by label
integer
default:"0"
Which matching element to fill
boolean
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
string
required
Target element:
@ref or app namestring
required
Text to type
Options
Same asfill command.
Examples
Output
check
Check a checkbox or toggle (idempotent - only clicks if not already checked).Arguments
string
required
Target element:
@ref or app nameOptions
string
Filter by role (defaults to
CheckBox when using app name)string
Filter by title
string
Filter by label
integer
default:"0"
Which matching element to check
boolean
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
string
required
Target element:
@ref or app namestring
required
Title of the option to select
Options
string
Filter by role (defaults to
PopUpButton when using app name)string
Filter by title
string
Filter by label
integer
default:"0"
Which matching element to use
boolean
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
string
required
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
string
required
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
string
required
Target element:
@ref or app namestring
required
Accessibility 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