tap_element
Locate a UI element by text, resource ID, or class name and tap its center to interact with it.
Instructions
Find a UI element by text, resource ID, or class name and tap its center
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_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text or content-desc; regex full-match — use .* for partial, e.g. 'Sign.*' | |
| device_id | No | Target device ID. If omitted, uses the default device. | |
| class_name | No | Ignored in M1; reserved for a future class selector | |
| resource_id | No | Bare resource-id, e.g. login_button; regex full-match |