mouse_drag
Drag the mouse from start to end coordinates by holding and releasing the button. Use for selecting, sliding, drawing, or drag-and-drop in desktop and browser modes.
Instructions
Move the pointer to (start_x, start_y), hold the mouse button, drag smoothly to (end_x, end_y), and release. Ideal for Paint tools, sliders, selections, and drag-and-drop.
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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "mouse_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | desktop | |
| end_x | Yes | ||
| end_y | Yes | ||
| button | No | left | |
| start_x | Yes | ||
| start_y | Yes | ||
| duration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||