Drag
dragPerforms a boundary-clamped press-and-move gesture from start to end coordinates, enabling AI agents to move UI items or select ranges in Wayland desktop applications.
Instructions
Performs a clamped drag-and-drop gesture 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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| end_x | Yes | ||
| end_y | Yes | ||
| start_x | Yes | ||
| start_y | Yes |