Click element
element_clickClicks the center of a desktop UI element using its accessibility-tree ref, so agents can act on controls without taking a screenshot; optionally selects menu items or uses modifiers.
Instructions
Click the centre of an element by ref (no screenshot needed).
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": {
"ref": "<ref>"
},
"name": "element_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from ax_tree/ax_find, e.g. "e12". | |
| 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". | |
| 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"]. |