tap_element
Taps a native element by its label, such as "Allow" on a permission popup, checking system UI first and then the app.
Instructions
Tap a native element by its label, for example "Allow" on a permission popup. Looks in the system UI first, then in the app.
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>",
"label": "<label>"
},
"name": "tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there) | |
| label | Yes | ||
| device | Yes | Device id (or exact name) from the devices tool | |
| screenshotAfterMs | No | If set, wait this many milliseconds after the action and return a screenshot too |