Select menu command
menu_selectSelect an enabled, unambiguous native menu command by its path within a target window, desktop, or display; missing, disabled, or ambiguous paths fail.
Instructions
Select an enabled, unambiguous native menu command, e.g. ["File", "Export…"]. Missing, disabled or ambiguous paths fail. On Windows, the server takes over for a foreground-only command when permitted.
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>",
"path": "<path>"
},
"name": "menu_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Menu path. | |
| target | Yes | Window id from list_windows (a "window:<id>" prefix is accepted), "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard. |