Drag
dragPresses the left mouse button at start coordinates, moves the pointer to target coordinates in steps, then releases, enabling click-and-move actions on X11/Xwayland displays.
Instructions
Presses the left button at 'from', moves to 'to' in steps, releases. X11/Xwayland targets only (the virtual pointer protocol cannot hold a button).
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": {
"from_x": "<from_x>",
"from_y": "<from_y>",
"to_x": "<to_x>",
"to_y": "<to_y>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Display id from display_open. Optional when exactly one display is open. | |
| to_x | Yes | ||
| to_y | Yes | ||
| steps | No | ||
| from_x | Yes | ||
| from_y | Yes | ||
| window_id | No |