Select menu command
menu_selectSelects an enabled native menu command by path for a window, desktop, or display; rejects missing, disabled, or ambiguous menu paths.
Instructions
Select an enabled, unambiguous native menu command, e.g. ["File", "Export…"]. Missing/disabled/ambiguous paths fail.
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, "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. |