iphone_tap_element
Taps iPhone UI elements by exact or partial visible text, selects among duplicates by index, and avoids covered areas so automation can interact with labels, buttons, and controls reliably.
Instructions
按文字点击元素:先找标签/名字完全相同的,找不到再找包含该文字的。中心被悬浮栏、键盘等盖住时改点没被盖住的部分,整个被盖住就不点。
index: 匹配到多个时点第几个(从 0 开始,顺序同 iphone_list_elements)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| then | No | 操作后等界面稳定,再顺带返回界面:elements=元素列表(最多 80 个),screenshot=截图。省一次单独的调用 | none |
| index | No | ||
| then_filter | No | then=elements 时只列包含这段文字的元素 | |
| then_region | No | then=screenshot 时只返回这块区域的放大图 [x, y, width, height](点),例如游戏棋盘 | |
| then_settle | No | 顺带返回界面前最多等几秒让界面稳定(不超过 10)。游戏、地图按画面是否静止判断,消除连锁等长动画可调大,画面一静止就返回 |