apps
List all running GUI applications.Options
string
default:"text"
Output format:
text or jsonExamples
Output
find
Find accessibility elements matching filter criteria.Arguments
string
required
Application name or bundle identifier
Options
string
Filter by accessibility role (e.g.,
Button, TextField)string
Filter by title (substring match)
string
Filter by accessibility label (substring match)
string
Filter by accessibility identifier (substring match)
string
Filter by value (substring match)
integer
default:"10"
Maximum search depth in the element tree
integer
default:"20"
Maximum number of results to return
string
default:"text"
Output format:
text or jsonExamples
Output
The
path field shows the element’s location in the accessibility tree, useful for debugging.inspect
Inspect all attributes and available actions for an element.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 inspect (0-indexed)
boolean
Output as JSON
Examples
Output
tree
Display the accessibility element hierarchy for an application.Arguments
string
required
Application name or bundle identifier
Options
integer
default:"5"
Maximum tree depth to display
string
default:"text"
Output format:
text or jsonExamples
Output
snapshot
Create an annotated snapshot of the accessibility tree with element references for easy interaction.Arguments
string
required
Application name or bundle identifier
Options
boolean
Show only interactive elements (buttons, text fields, etc.)
boolean
Remove empty structural elements from output
integer
default:"8"
Maximum tree depth
boolean
Output as JSON
Examples
Output
References like
[ref=n4] can be used in other commands: agent-native click @n4Interactive roles
When using--interactive, these element types are included:
- Buttons and menu items
- Text fields and text areas
- Checkboxes and radio buttons
- Popup buttons and combo boxes
- Sliders and steppers
- Links and tabs
- Switches and toggles
- Search fields
Use cases
- Agent automation
- Debugging
- Testing
Agents can use snapshots to understand available UI elements: