desktop_drag_to
Drag content from a source window to a target window by specifying coordinates from a screenshot. Validates both endpoints before performing the drag.
Instructions
Drag from a source into a second observed window, automatically activating the source after validating both endpoints. Coordinates refer to one screenshot. Verify transfer in the applications; dispatch does not prove a drop was accepted.
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": {
"source_window_id": "<source_window_id>",
"target_window_id": "<target_window_id>",
"snapshot_id": "<snapshot_id>",
"x": "<x>",
"y": "<y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "desktop_drag_to"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| end_x | Yes | ||
| end_y | Yes | ||
| button | No | left | |
| snapshot_id | Yes | ||
| source_window_id | Yes | ||
| target_window_id | Yes |