drag
Drags the mouse from a start coordinate to an end coordinate for automating UI interactions on macOS.
Instructions
Performs a drag operation from start to end coordinates
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": {
"startX": "<startX>",
"startY": "<startY>",
"endX": "<endX>",
"endY": "<endY>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startX | Yes | Starting X coordinate | |
| startY | Yes | Starting Y coordinate | |
| endX | Yes | Ending X coordinate | |
| endY | Yes | Ending Y coordinate |