desktop_mouse_click
Clicks at absolute screen coordinates to interact with desktop UI elements, supporting button choice, click count, and held modifier keys.
Instructions
agent-desktop mouse-click: Click at absolute screen coordinates (requires --headed)
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": {
"xy": "<xy>"
},
"name": "desktop_mouse_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xy | Yes | Absolute coordinates as x,y; requires --headed; write a negative value with = (--xy=-100,50) | |
| count | No | Number of clicks | |
| button | No | Mouse button: left, right, middle | left |
| modifiers | No | Held modifiers: shift, meta, ctrl, alt (repeatable; cmd is accepted) |