desktop_drag
Drag-and-drop on your desktop: press at (x, y), move to (end_x, end_y), release.
Use desktop_screenshot first to get the source element's center, then pick a drop point. Good for moving a graph/canvas node, reordering a list, dragging a slider, or dropping one item onto another.
PANNING: on an interactive canvas — a node graph (React Flow topology), a map (Google Maps), a diagram, an image viewer — drag across EMPTY canvas space (not on a node/marker) to PAN the view. If part of what you want is off-screen, pan toward it instead of assuming it isn't there. Pair with scroll-to-zoom (see desktop_interact's scroll action) to navigate large canvases: zoom out to get an overview, pan to the region of interest, zoom in to act.
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": {
"vm_name": "<vm_name>",
"x": "<x>",
"y": "<y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "desktop_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Start X — where to grab (from the element's center[0]) | |
| y | Yes | Start Y — where to grab (from the element's center[1]) | |
| end_x | Yes | End X — where to drop | |
| end_y | Yes | End Y — where to drop | |
| api_key | No | MCP API key | |
| vm_name | Yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. | |
| include_perf | No | Include per-stage timing metrics. | |
| response_mode | No | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), none (no capture; blind action only). | full |
| session_token | No | Session token | |
| screenshot_delay | No | Seconds to wait after the drop before screenshotting (default 0.3). Increase for drops that animate/relayout. |