click
Click a specified UI element or screen coordinates on a Mac application using accessibility APIs. Uses element_index from get_app_state for precise targeting.
Instructions
Click screen coordinates or an accessibility element center using CGEvent. Use element_index from get_app_state when possible.
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": {
"app": "<app>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| app | Yes | ||
| click_count | No | ||
| display_index | No | ||
| element_index | No | ||
| coordinate_space | No | ||
| confirm_risk_action | No |