Drag
dragSimulate pointer movement along a screenshot pixel path, optionally holding keys or modifiers, to perform GUI interactions on a window or desktop.
Instructions
Drag along a path of screenshot pixels, optionally holding keys/modifiers.
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": {
"target": "<target>",
"path": "<path>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Keys held for the whole drag, e.g. ["space"]. | |
| path | Yes | Points from start to end. | |
| button | No | "left" (default), "right" or "middle". | |
| target | Yes | Window id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard. | |
| takeover | No | Omit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over. | |
| modifiers | No | Modifier keys held during the click, e.g. ["shift"]. |