ruyi_human_drag
Performs human-like mouse drag for sliders, sorting, and drag-and-drop, using move-hold-wait-release actions with selectors or viewport coordinates.
Instructions
执行原子的拟人鼠标拖拽:move → hold → wait → human_move → wait → release。ruyiPage 1.2.54 会把按下到释放合并为单次 BiDi input.performActions,适合滑块、排序和 drag-and-drop 场景。source/target 可用选择器或 viewport 坐标。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ruyi_human_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | arc | |
| button | No | 鼠标按钮:0 左键、1 中键、2 右键 | |
| holdMs | No | 按下后等待毫秒数,默认 120 | |
| source | No | 起点元素选择器;与 sourcePoint 二选一 | |
| target | No | 终点元素选择器;与 targetPoint 二选一 | |
| pageIdx | No | ||
| algorithm | No | bezier | |
| releaseMs | No | 到达目标后、释放前等待毫秒数,默认 80 | |
| sourcePoint | No | 起点 viewport 坐标;与 source 二选一 | |
| targetPoint | No | 终点 viewport 坐标;与 target 二选一 |