ios_tap
Taps an iOS Simulator or iPhone UI element by observed index or screen coordinates, with optional long-press duration, enabling precise interaction from accessibility observations.
Instructions
Tap an element by [index] from the latest observation, or a point (x, y) in points.
Args: index: Element index from the latest ios_observe or action result. x: Horizontal position in points (with y, instead of index). y: Vertical position in points. hold_seconds: Press duration for a long press (e.g. 1.0); 0 for a normal tap. device: Simulator name or UDID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| index | No | ||
| device | No | ||
| hold_seconds | No |