drag
Press the mouse at (x1, y1), move it in steps to (x2, y2), and release to simulate a held-button pointer movement on an X11 desktop.
Instructions
Press at (x1, y1), move to (x2, y2) in steps, release.
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"
}
}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 |