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.
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". |