Click
clickSend pointer presses at screenshot pixel coordinates to a chosen window, optionally bringing it forward so apps receive real input.
Instructions
Click at screenshot pixels in a target window. Takeover brings the window forward and sends real pointer input.
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); with frame: "window", pixels from the window's top-left corner. | |
| 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. | |
| frame | No | "screenshot" (default): x,y are pixels of the latest full screenshot of this target. "window": x,y are logical pixels from the window's top-left corner (list_windows width/height; an ax_find bound minus the window x,y). It keeps the target's capture sizing and changes baseline. If a frame is needed, the server uses the last requested bounds or the defaults. | |
| button | No | "left" (default), "right" or "middle". | |
| target | Yes | Window id from list_windows (a "window:<id>" prefix is accepted), "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard. | |
| takeover | No | Omit to follow the plugin setting ("prefer" uses real input first, "fallback" tries background input first, "refuse" disables takeover). Use true for reliable input in Chromium (including Brave), Electron, and terminal hosts when takeover is allowed. Takeover brings the window forward and can interrupt the user. For window targets, use false to request background-only input; desktop and display targets send real input. | |
| modifiers | No | Modifier keys held during the click, e.g. ["shift"]. |