computer_drag
Simulate mouse dragging from one screen coordinate to another on a Mac, with adjustable duration and button selection.
Instructions
Drag from start coordinates 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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "computer_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_x | Yes | Ending X coordinate | |
| end_y | Yes | Ending Y coordinate | |
| button | No | Mouse button to use (default: 'left') | left |
| start_x | Yes | Starting X coordinate | |
| start_y | Yes | Starting Y coordinate | |
| duration | No | Duration of the drag in seconds (default: 0.5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||