Run a menu command
ui_click_menuClicks a menu command by path, such as File > Export To > PDF, using case-insensitive or unique-prefix matching. Runs in the background; inspect any resulting dialog with ui_snapshot.
Instructions
Click a menu command by its path, e.g. ["File", "Export To", "PDF"]. Matching ignores case and trailing "…", and accepts a unique prefix. Works with the app in the background. Afterwards, a dialog may open: inspect it with ui_snapshot.
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>",
"path": "<path>"
},
"name": "ui_click_menu"
}
}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 | |
| path | Yes | ||
| front | No | Bring the app to the front first. Off by default: apps are driven in the background so the user's screen isn't taken over. |