click
Simulate mouse presses at specified screen coordinates to control GUI apps on the agent’s virtual screen; supports button, count, modifiers, and optional screenshot.
Instructions
Click at screen coordinates (left by default; count=2 for a double click).
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": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | screen pixel x | |
| y | Yes | screen pixel y | |
| count | No | 1 (default), 2 for a double click, 3 for a triple click | |
| button | No | left (default), right or middle | |
| screen | No | screen name; optional when the session owns exactly one screen | |
| modifiers | No | modifiers held during the click: ctrl, shift, alt, super | |
| settle_ms | No | delay before that screenshot, default 150 | |
| screenshot_after | No | return a screenshot after the action (default false) |