click_element
Press buttons or links, or focus text fields by id or label in macOS apps. Uses accessibility actions, then a real click fallback, without moving the mouse or stealing focus from background apps.
Instructions
Press a button/link or focus a text field by id or label. Uses accessibility actions (no mouse movement) and falls back to a real click at the element center.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "click_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element id from inspect, e.g. "1.3.2" | |
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| role | No | Role to match, e.g. "AXButton". Alone, it must match exactly one element. | |
| label | No | Element name/description/value to match (used when id is not given) |