ios_tap
Tap at specific coordinates on an iOS simulator screen. Use with coordinates from OCR screenshot to interact with app elements during testing.
Instructions
Tap at specific coordinates on an iOS simulator screen. WORKFLOW: Use ocr_screenshot first to get tap coordinates, then use this tool with the returned tapX/tapY values. Requires IDB (brew install idb-companion).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>"
},
"name": "ios_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in pixels | |
| y | Yes | Y coordinate in pixels | |
| duration | No | Optional tap duration in seconds (for long press) | |
| udid | No | Optional simulator UDID. Uses booted simulator if not specified. |