gesture-tap
Tap buttons, links, or other tappable elements on iOS simulators, physical iOS devices, Android emulators, or Chromium apps using screen-relative coordinates to automate UI interaction.
Instructions
Press the device screen (iOS simulator or physical device, Android emulator, or Chromium app) at a point given as fractions of the screen width and height (not pixels): a Down event followed by an Up event at the same spot.
Use when tapping a button, link, or any tappable element on the screen.
Returns { tapped: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the device backend (simulator-server / emulator / Chromium CDP) is unreachable.
Before tapping, take the coordinates from describe on every platform (on Chromium it walks the DOM). More information in argent-device-interact skill
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": {
"udid": "<udid>",
"x": "<x>",
"y": "<y>"
},
"name": "gesture-tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Horizontal position: 0 = left edge, 1 = right edge. Range: 0 to 1. | |
| y | Yes | Vertical position: 0 = top edge, 1 = bottom edge. Range: 0 to 1. | |
| udid | Yes | Target device id from `list-devices` (iOS UDID, Android serial, or Chromium id). | |
| clickCount | No | Number of taps/clicks dispatched as ONE gesture inside the OS double-tap window (2 = double-tap / double-click), which two separate tap calls cannot guarantee. On physical iOS, higher counts loop single taps, which a double-tap recognizer may pair. Default 1. Range: 1 to 10. |