Tap
phone_tapTaps an Android screen element by ref or visible text, or a screen coordinate by x/y; supports long-press for interactions that need a held touch.
Instructions
Tap an element by ref or visible text, or a point by x/y (screenshot pixels). Set long for a long-press.
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": "phone_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | Element number from the latest screen list. | |
| long | No | Long-press instead of tap. | |
| text | No | Visible text (or resource id) of the element to tap. | |
| serial | No | Which device to use. Only needed when several are connected. |