swipe_screen
Swipes or drags across an Android screen in any direction, with custom coordinates, and can auto-scroll until specified text appears. Use it to navigate content or locate off-screen elements by text.
Instructions
智能滑动与滚动查找工具。
支持四向滑动、自定义坐标拖拽,或设置 scroll_to_text="目标文字" 让工具自动滚屏寻找目标!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | 自定义起点 X | |
| x2 | No | 自定义终点 X | |
| y1 | No | 自定义起点 Y | |
| y2 | No | 自定义终点 Y | |
| scale | No | 滑动幅度比例 (0.2 ~ 0.9),默认 0.6 | |
| direction | No | 滑动方向:'up'(手指上滑浏览下方内容)、'down'、'left'、'right' | up |
| duration_ms | No | 滑动耗时毫秒数,默认 350 | |
| scroll_to_text | No | 可选:自动连续滚动屏幕直到出现包含该文本的元素为止! | |
| return_ui_after | No | 滑动后是否附带完整 UI 树。默认 False——连续滑动时每步重抓全树会拖慢节奏;滚屏找元素请直接用 scroll_to_text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |