click_menu_item
Invoke a native Windows menu item by menu path without moving the physical cursor or using keyboard shortcuts. Works in the background without stealing focus.
Instructions
Invoke a native Windows menu item by menu path without moving the physical cursor or using keyboard shortcuts.
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": {
"path": "<path>"
},
"name": "click_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Window handle from list_windows or launch_app. Numbers are accepted at runtime, but strings are safest for Codex. | |
| pid | No | ||
| processName | No | ||
| titleContains | No | ||
| path | Yes | Native menu path, for example ["帮助", "关于"]. Matching ignores accelerator markers and is case-insensitive. | |
| delayMs | No | Delay after invoking the menu command. |