batch_ui_actions
Execute 2–6 predictable Android UI steps in one call—launch, wait, tap, input, swipe, or key events—without pausing between actions. Stops on failure and returns the current UI tree for correction.
Instructions
【王牌去人机感工具】单次调用连续执行多步手机操作流水线! 当能够预判接下来的 2~6 步操作时(例如:启动应用 -> 等待首页 -> 点击搜索框 -> 输入关键词 -> 按回车), 必须使用本工具一次性下发,彻底告别『点一下停几秒等下一轮』的卡顿体验! 若中途某一步失败,会自动中断并返回当前停留页面的 UI 树供纠错。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | 要连续执行的动作数组。支持动作类型: 1. {'action': 'launch', 'package': 'com.xxx', 'activity': '可选'} 2. {'action': 'wait_for', 'text': '搜索', 'timeout': 5} 3. {'action': 'tap', 'text': '...', 'text_contains': '...', 'id': '...', 'index': 0, 'x': 100, 'y': 200} 4. {'action': 'input', 'text': '要输入的中文', 'hint': '搜索框提示词', 'clear': True, 'enter': True} 5. {'action': 'swipe', 'direction': 'up', 'scroll_to_text': '可选滚动查找文字'} 6. {'action': 'key', 'key': 'BACK'} 7. {'action': 'sleep', 'ms': 500} 8. {'action': 'root_cmd', 'cmd': '...'} | |
| return_ui_after | No | 批量执行完毕后是否附带最终 UI 树。默认 False——流水线跑完再由调用方决定是否观察;流水线中途失败仍会返回当时页面供纠错 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |