menu
Click macOS app menu-bar items by name path or list available items, even in background apps without stealing focus.
Instructions
Use an app's menu bar by item names, e.g. path ["File", "Save…"]. A path ending on a menu (or empty) lists its items; ending on an item clicks it. Works on background apps. Names are localized ("..." matches "…").
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| path | No |