click
Invoke a desktop UI element by handle ID, with optional right-click for context menus or double-click for list and tree items. Falls back to a real pointer click when no accessibility action exists.
Instructions
Click / invoke an element. Get handle_id from find_elements() or get_tree().
A plain left single click invokes the element's accessibility action (foreground-independent, does not steal focus). If the element exposes no actionable pattern, it falls back to a real pointer click at the element's center, so custom-drawn panels and tab strips that only highlight on a11y Select still get activated.
button="right" opens context menus; clicks=2 is a real double-click (opens list rows / tree items whose a11y invoke only selects them). Both always use real pointer events at the element's center, so make sure the window is on top for those.
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": {
"handle_id": "<handle_id>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | No | left | |
| clicks | No | ||
| handle_id | Yes |