window_click
Send a mouse click to a background window at relative coordinates while keeping the physical cursor and focus unchanged. Specify the window, x/y position, button, and click count.
Instructions
Send a background mouse click at relative coordinates (x, y) inside the target window without moving the user's physical mouse cursor or stealing focus.
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": {
"window_id": "<window_id>",
"x": "<x>",
"y": "<y>"
},
"name": "window_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate relative to the window. | |
| y | Yes | Y coordinate relative to the window. | |
| button | No | Mouse button to click. | left |
| clicks | No | Number of clicks (1 for single, 2 for double). | |
| window_id | Yes | Target window ID or title. |