Discovery commands help you locate UI elements and understand the accessibility hierarchy of applications.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ericclemmons/agent-native/llms.txt
Use this file to discover all available pages before exploring further.
apps
List all running GUI applications.Options
Output format:
text or jsonExamples
Output
find
Find accessibility elements matching filter criteria.Arguments
Application name or bundle identifier
Options
Filter by accessibility role (e.g.,
Button, TextField)Filter by title (substring match)
Filter by accessibility label (substring match)
Filter by accessibility identifier (substring match)
Filter by value (substring match)
Maximum search depth in the element tree
Maximum number of results to return
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
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 inspect (0-indexed)
Output as JSON
Examples
Output
tree
Display the accessibility element hierarchy for an application.Arguments
Application name or bundle identifier
Options
Maximum tree depth to display
Output format:
text or jsonExamples
Output
snapshot
Create an annotated snapshot of the accessibility tree with element references for easy interaction.Arguments
Application name or bundle identifier
Options
Show only interactive elements (buttons, text fields, etc.)
Remove empty structural elements from output
Maximum tree depth
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: