accessibility_click
Click UI elements by accessibility role and optional title. Uses the accessibility press action for reliable interaction with buttons, menu items, and other controls, avoiding coordinate-based clicking.
Instructions
Click a UI element by its accessibility role and optional title. This performs an accessibility "press" action, which is more reliable than coordinate-based clicking for buttons, menu items, etc.
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": {
"role": "<role>"
},
"name": "accessibility_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Process ID of the app (omit for frontmost app) | |
| role | Yes | Accessibility role (e.g., "AXButton", "AXMenuItem", "AXTextField", "AXCheckBox", "AXLink") | |
| title | No | Element title to match (partial, case-insensitive) |