Skip to main content
Interaction commands perform actions on UI elements using either element references from snapshots or filter-based selection.

click

Click an element by performing the AXPress action.

Arguments

string
required
Target element: @ref (from snapshot) or app name

Options

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 name
string
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 name
string
required
Text to type

Options

Same as fill command.

Examples

Output

Use type to append text, or fill to replace existing content.

check

Check a checkbox or toggle (idempotent - only clicks if not already checked).

Arguments

string
required
Target element: @ref or app name

Options

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 to check command.

Examples

Output


select

Select an option from a popup button or combo box.

Arguments

string
required
Target element: @ref or app name
string
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 name

Options

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 name

Options

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 name
string
required
Accessibility action to perform (e.g., AXPress, AXConfirm, AXIncrement)

Options

Standard filter options: --role, --title, --label, --identifier, --index, --json

Examples

Output

If the specified action is not available for the element, a warning is shown but the command still attempts the action.

Common actions

  • AXPress - Click/activate
  • AXConfirm - Confirm/submit
  • AXShowMenu - Show context menu
  • AXIncrement - Increase value
  • AXDecrement - Decrease value
  • AXRaise - Bring to front
  • AXCancel - Cancel operation
  • AXPick - Pick/select item
Use inspect command to see which actions are available for an element.

Workflow examples

Login form automation

Form with dropdown

Multi-step wizard