tap
Clicks an Android UI element using its latest UI-tree index, visible text/description, resource ID, or physical screen coordinates.
Instructions
Tap an element by 1-based index, text/desc, or resource-id from the latest ui_tree, or at physical screen coordinates (x, y).
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 | Physical X coordinate in pixels. | |
| y | No | Physical Y coordinate in pixels. | |
| id | No | Resource ID (short or full) of the node from the latest ui_tree. | |
| text | No | Visible text or content-desc of the node from the latest ui_tree. | |
| index | No | 1-based node index from the latest ui_tree (e.g. 1, 2). |