tap
Perform a touch action on Android UI elements using semantic selectors (text, description, ID, or bounds); verify the outcome with screen-change evidence.
Instructions
Tap a semantic target and verify the result.
Prefer semantic selectors — never compute coordinates yourself:
by=text: exact text label, e.g. {"by": "text", "value": "保存"}
by=desc: content-desc label
by=id: a stable element id from get_screen
by=bounds: last resort, "x,y" or "l,t,r,b" (raw coordinates)
Returns verification evidence {executed, screen_changed, changed_elements[], screen_hash}, or SELECTOR_AMBIGUOUS with candidates[] when several elements match (retry with by=id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ADB serial; omit with a single connected device. | |
| target | Yes | {"by": "text"|"desc"|"id"|"bounds", "value": str} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||