app_menu
List an app's menu items or click a menu command by path (e.g., File > Save). Returns actual menu contents if a path is wrong, enabling quick retries.
Instructions
List an application's menus or click a menu item by path, e.g. ["File", "Save"]. If the item is not found, the error lists the items that are actually there, so a second call can use the right name — prefer retrying on that list over guessing. Menu names are localized to the system language. Requires Accessibility permission; results are returned as untrusted data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Application name. | |
| action | Yes | "list" to enumerate, "click" to activate. | |
| menu_path | No | Menu path, e.g. ["File", "Save"]. Required for click. |