Press an element
press_ui_elementActivates a macOS UI element by ID—button, link, checkbox, tab, or menu item—through Accessibility, without moving the pointer or bringing its window to the front.
Instructions
Use an element as a click would: press a button, follow a link, toggle a checkbox, choose a tab or a menu item. It's done through Accessibility: the pointer doesn't move, and the window needn't be in front. What it does is the app's: a button may send, delete or buy.
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": {
"id": "<id>"
},
"name": "press_ui_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The element's id, from get_ui_elements, find_ui_elements or another tool of these that returned it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |