ui_tap
Tap UI elements on the iOS simulator by accessibility identifier, label, or x/y coordinates for automated testing.
Instructions
Tap a UI element on the simulator by accessibility id (most reliable), label, or x/y coordinates. At least one targeting method must be provided. Prefer accessibility id when available — use ui_snapshot to discover them.
Requires AXe CLI: brew tap cameroncooke/axe && brew install axe
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ui_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID, name, or 'booted' | booted |
| id | No | Accessibility identifier to tap | |
| label | No | Accessibility label to tap | |
| x | No | X coordinate to tap | |
| y | No | Y coordinate to tap |