Drag Mouse
drag_mouseDrags the mouse pointer from one screen coordinate to another while holding a specified button, enabling X11-only desktop automation and UI interactions.
Instructions
Drag with a button held from (x1,y1) to (x2,y2). X11 only.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "drag_mouse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| button | No | left |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |