send_mouse_drag
Simulate a mouse drag by pressing and holding a button, moving between coordinates, and releasing. Configure start/end positions, button, and step count for smooth movement.
Instructions
Send a mouse drag (press, move, release) from one position to another. For simple clicks, use send_mouse_click. Requires run_interactive.
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": {
"fromX": "<fromX>",
"fromY": "<fromY>",
"toX": "<toX>",
"toY": "<toY>"
},
"name": "send_mouse_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toX | Yes | Ending X coordinate. | |
| toY | Yes | Ending Y coordinate. | |
| fromX | Yes | Starting X coordinate. | |
| fromY | Yes | Starting Y coordinate. | |
| steps | No | Number of intermediate motion events (default: 10). Higher = smoother drag. | |
| button | No | Mouse button for the drag. Default: "left". |