tap_element
Tap Android UI elements by resource ID, text, or content description to automate touch interactions during testing or control workflows.
Instructions
Tap a UI element by its resource-id, text, or content-desc. Finds the element in the UI tree and taps its center.
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": {
"by": "<by>",
"value": "<value>"
},
"name": "tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | How to find the element | |
| value | Yes | Value to match | |
| device_id | No | Device ID (optional if only one device) |