Perform an element's action
perform_ui_actionTriggers a specific action on a macOS UI element by ID, letting assistants open menus, step sliders, confirm, cancel, or pick from UI elements discovered by inspection tools.
Instructions
Ask an element to do one of its actions, as its actions field lists them.
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>",
"action": "<action>"
},
"name": "perform_ui_action"
}
}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. | |
| action | Yes | One of the element's actions: 'AXShowMenu' opens its menu, 'AXIncrement' and 'AXDecrement' step a slider or a stepper, 'AXConfirm', 'AXCancel', 'AXPick'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |