Click
clickSimulate mouse button presses at specified screenshot pixel coordinates in a target window, running in the background without moving the user's pointer.
Instructions
Click at screenshot pixels in a target window (background by default, without moving the user's pointer).
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": {
"target": "<target>",
"x": "<x>",
"y": "<y>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | x in pixels of the most recent FULL screenshot of the same target (not zoom pixels, not AX coordinates). | |
| y | Yes | y in the same frame as x. | |
| menu | No | Menu item path to choose in the menu this click opens, e.g. ["Add to", "Fonts"]. | |
| count | No | Click count, e.g. 2 for a double click. | |
| button | No | "left" (default), "right" or "middle". | |
| target | Yes | Window id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard. | |
| takeover | No | Omit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over. | |
| modifiers | No | Modifier keys held during the click, e.g. ["shift"]. |