mouse_drag
Simulate a drag gesture by holding a mouse button from a start point to an end point, enabling GUI automation for selecting, moving, or dropping items.
Instructions
Press a mouse button at a start point and release it at an end point.
Args: params (DragInput): optional start, required end, button and duration.
Returns: str: JSON describing the drag.
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": {
"params": "<params>"
},
"name": "mouse_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |