tap
Tap an element by text or at x/y coordinates on a connected Android device. Use text to avoid layout and resolution issues; if matches are ambiguous, coordinates provide a direct fallback.
Instructions
Tap the screen, either at a coordinate or on the element matching text.
Prefer text: it survives layout and resolution differences. Exact matches win
over partial ones; if several elements match, none is tapped and they are listed
so you can pick a coordinate instead.
Args:
x, y: device coordinates. Ignored when text is given.
text: text, content description or resource id of the element to tap.
serial: device serial when several are attached.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| text | No | ||
| serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |