tap_element
Locate an iOS UI element by text, identifier, or type, wait for it to appear, then tap its center; optionally scroll and retry if it is off-screen.
Instructions
Find an element by text/identifier/type, waiting for it to appear, and tap its center.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Exact accessibility identifier | |
| text | No | Matches label, identifier, value or placeholder (exact first, then substring, case-insensitive) | |
| type | No | Element type, e.g. Button, TextField, Cell, Switch | |
| exact | No | Require an exact text match | |
| index | No | Pick the Nth best match (0-based) | |
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| timeout | No | Seconds to wait for the element (default 5) | |
| maxScrolls | No | Scroll attempts when scrollDirection is set (default 8) | |
| recordAudio | No | Record the Mac microphone around the tap. The tap is sent once audio is actually being captured, and the result gives its offset in the file | |
| scrollDirection | No | If not found, scroll this way and look again (lists load lazily, so off-screen rows may not exist yet) |