desktop_drag
Simulate a press-drag-release mouse gesture from one screen coordinate to another to move, select, or drag items within a window or across the desktop.
Instructions
Press-drag-release mouse gesture from (from_x, from_y) to (to_x, to_y).
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": {
"from_x": "<from_x>",
"from_y": "<from_y>",
"to_x": "<to_x>",
"to_y": "<to_y>"
},
"name": "desktop_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| to_x | Yes | ||
| to_y | Yes | ||
| scope | No | ||
| steps | No | ||
| button | No | left | |
| from_x | Yes | ||
| from_y | Yes | ||
| window_id | No | ||
| duration_ms | No | ||
| delivery_mode | No |