tap
Touch precise screen coordinates on virtual Android, iOS, visionOS, and macOS devices to click apps, long-press, or interact with games, ads, and system popups.
Instructions
Touch the screen at a position (a click on "mac", a look-and-pinch on Apple Vision Pro, sent through the DeviceHub window). Works on anything in front: the game, an ad, a system popup. Not available on Apple TV, which has no touch screen: use key there.
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": {
"device": "<device>",
"x": "<x>",
"y": "<y>"
},
"name": "tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Horizontal position, as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge | |
| y | Yes | Vertical position, as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge | |
| app | No | App id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there) | |
| device | Yes | Device id (or exact name) from the devices tool | |
| holdMs | No | Keep the finger down this long (a long press). Default: a quick tap | |
| screenshotAfterMs | No | If set, wait this many milliseconds after the action and return a screenshot too |