ui_snapshot
Retrieve the accessibility hierarchy of a simulator screen to identify element roles, labels, identifiers, and frame coordinates for UI testing.
Instructions
Get the accessibility hierarchy of a simulator screen. This is the key tool for understanding what's on screen — returns element roles, labels, identifiers, values, and frame coordinates. Use it to find elements before tapping or swiping.
Requires AXe CLI: brew tap cameroncooke/axe && brew install axe
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID, name, or 'booted' | booted |