screen_drag
Drag the mouse cursor between two screen coordinates. Use for automated dragging actions such as moving objects, selecting text, or scrolling.
Instructions
鼠标拖拽(需 VISION_ALLOW_SCREEN_CONTROL=1)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "screen_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| button | No | ||
| duration | No | 拖拽时长秒,默认 0.2 |