iphone_press_button
Presses an iPhone's hardware buttons—Home, volume up/down, or Lock—and optionally returns on-screen elements or a screenshot after the interface settles.
Instructions
按硬件键:home(回主屏幕)、volume_up、volume_down、lock(锁屏;配置了密码时之后的操作会自动解锁)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then | No | 操作后等界面稳定,再顺带返回界面:elements=元素列表(最多 80 个),screenshot=截图。省一次单独的调用 | none |
| button | Yes | ||
| then_filter | No | then=elements 时只列包含这段文字的元素 | |
| then_region | No | then=screenshot 时只返回这块区域的放大图 [x, y, width, height](点),例如游戏棋盘 | |
| then_settle | No | 顺带返回界面前最多等几秒让界面稳定(不超过 10)。游戏、地图按画面是否静止判断,消除连锁等长动画可调大,画面一静止就返回 |