Perform one observed MAX+plus II action
desktop_actionExecute a single Windows UI action—click, type, drag, scroll, or invoke a menu—then return a fresh screenshot and UI tree for verification. Requires the current window and observation IDs.
Instructions
Directly execute ONE click, hover, key chord, Unicode text entry, value change, drag, scroll, secondary UI action or activation, then return a fresh screenshot/tree. Uses MCP-owned Win32/UIA. Requires latest observationId/windowId. Inspect after every input; no host-specific calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | MAX+plus II installation root; defaults to MAXPLUS2_ROOT or discovered installation. | |
| action | Yes | One native Windows action; invoke_menu requires an observed enabled leaf menu_index. | |
| windowId | Yes | Window ID from the latest observation. | |
| parameters | No | invoke_menu:menu_index from menus.items; click: element_index OR window-relative physical x/y+screenshotId, optional mouse_button/click_count; move:x/y/screenshotId; press_key:key; type_text:text; set_value:element_index/value; drag:from_x/from_y/to_x/to_y/screenshotId, optional mouse_button/durationMs(100..5000); scroll:x/y/scrollX/scrollY/screenshotId (integer wheel units,120 per notch); secondary:element_index/action. Mouse actions may use modifiers:["Ctrl","Shift","Alt"]. Observe actual focus before typing. | |
| operationId | No | Optional unique 1..100 character letters/digits/_/- ID. Retrying identical arguments with this ID reads the cached result and never repeats input; reuse with different arguments is rejected. | |
| observationId | Yes | Unconsumed ID from desktop_observe or the previous action result. |