pt_tap
Tap the iOS simulator screen at specified x,y coordinates to interact with UI elements. Discover coordinates via element inspection; optional hold duration supports long presses.
Instructions
Tap on the screen at the specified (x, y) coordinates. Use pt_list_elements first to find the coordinates of the element you want to tap.
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": "pt_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | The x coordinate to tap | |
| y | Yes | The y coordinate to tap | |
| udid | No | Simulator UDID (uses active device if not specified) | |
| duration | No | Hold duration in seconds for long press (e.g. 0.5 for half second) |