List an app's menu commands
ui_list_menusLists every menu bar command path for an app, flagging disabled items so you can find features that lack a scripting interface. Expand submenu depth or filter to one menu.
Instructions
List every command in an app's menu bar as paths like "File > Export To > PDF…", marking disabled ones. This is how to discover expert features that have no scripting interface (e.g. Final Cut's Transcribe to Captions or Beat Detection, Logic's Chord ID, Keynote's Generate Slides from Text). Paths ending in ">" have submenus; raise depth or pass menu to see deeper. Some items only enable with a selection or an open document.
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>"
},
"name": "ui_list_menus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path | |
| menu | No | Only this top-level menu, e.g. "Modify" | |
| depth | No | Submenu levels to expand | |
| outFile | No | Write the map here, one path per line, and return only the count. Then grep the file instead of reading the whole map into the conversation. |