desktop_drag
Drag the mouse from one coordinate to another on the sandbox desktop, enabling GUI automation tasks like moving windows or drawing.
Instructions
Drag from (from_x, from_y) to (to_x, to_y) on the sandbox desktop.
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": {
"id": "<id>",
"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 |
|---|---|---|---|
| id | Yes | ||
| to_x | Yes | ||
| to_y | Yes | ||
| button | No | ||
| from_x | Yes | ||
| from_y | Yes | ||
| hold_ms | No |