Choose a menu item
click_menu_itemActivates an app menu item by its menu path, bringing the app to the front first. Use it to trigger app commands such as saving, formatting, sending, or quitting.
Instructions
Choose an item of an app's menus, as a click on it would. The app comes to the front first, since its menus act on its window in front. What it does is the app's: an item may delete, send or quit.
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": {
"path": "<path>"
},
"name": "click_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app, by name, bundle identifier or path. The app in front by default. | |
| path | Yes | The menu, then the item, through any submenus, separated by '>': 'File > Save As…', 'Format > Font > Bold'. '...' stands for '…', and case doesn't matter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |