ACTION_SWIPE
Simulates a straight drag between two screen coordinates through Android accessibility, enabling workflows to perform gesture-based interactions with adjustable duration.
Instructions
滑动:从 (x1,y1) 直线滑到 (x2,y2)(需无障碍)。输出:swipe_success。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | 起点 x(像素) | |
| x2 | Yes | 终点 x(像素) | |
| y1 | Yes | 起点 y(像素) | |
| y2 | Yes | 终点 y(像素) | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| duration | No | 滑动时长毫秒,限制 1-60000(默认 400) | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |