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.
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": "ios_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| index | No | ||
| device | No | ||
| hold_seconds | No |