mac_menu_command
Trigger any macOS app's menu bar item by title or path via accessibility, without the app being frontmost, and report whether the action changed state or opened a dialog.
Instructions
Run an app's menu bar command through accessibility (AXPress on the item: no pointer, the app need not be frontmost). command is the item title as the app shows it (unique in the menu bar) or a path such as "File > Export > PDF…"; an item that reads disabled is still pressed (closed menus report stale state) and the result says whether anything changed; reports delivery and any sheet or dialog it opened. Menu items under the Apple menu and items whose keyboard shortcut is one of the refused chords need force:true; Quit of the MCP host or of a macOS session process is always refused.
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>",
"command": "<command>"
},
"name": "mac_menu_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| force | No | ||
| command | Yes |