List menu items
menu_itemsRetrieves native menu-bar items for a window or a specific menu path, returning depth-first full paths to inspect available commands.
Instructions
Native menu-bar items of a window; with path, that menu's items (depth-first, full paths). Not read-only: on macOS reading a menu first makes its window key in its app (omp classifies it as exec).
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": {
"target": "<target>"
},
"name": "menu_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Menu path, e.g. ["File"]. | |
| target | Yes | Window id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard. |