desktop_click
Moves the mouse to specified screen or screenshot-frame coordinates and performs left, right, or middle clicks, using frame context to guard against window occlusion or movement.
Instructions
Move to (x, y) and click. Prefer passing from_frame from desktop_screenshot so occlusion/window movement is guarded automatically.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "desktop_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Physical desktop pixel X, or image X if `from_frame` is passed. | |
| y | Yes | Physical desktop pixel Y, or image Y if `from_frame` is passed. | |
| button | No | left | |
| clicks | No | ||
| modifiers | No | Optional modifiers held during click, e.g. "ctrl" or "shift". | |
| from_frame | No | Frame id returned by desktop_screenshot. | |
| prefer_a11y | No | ||
| allow_windows | No | ||
| allow_activate | No | ||
| verify_content | No |