desktop_drag
Perform a drag between two points within a window, auto-selecting pointer input and ensuring button release for reliable desktop automation.
Instructions
Drag between two observed points inside the same window, automatically choosing independent or foreground pointer input after validation; always attempts release of its own button. Use desktop_drag_to for another destination window.
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": {
"window_id": "<window_id>",
"snapshot_id": "<snapshot_id>",
"x": "<x>",
"y": "<y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "desktop_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| end_x | Yes | ||
| end_y | Yes | ||
| button | No | left | |
| window_id | Yes | ||
| snapshot_id | Yes |