ui_invoke
Invoke UI elements like buttons and menu items using the Invoke pattern, avoiding mouse movement for reliable interaction even when elements are off-screen or obscured.
Instructions
Invoke a UI element using UIA InvokePattern (no mouse movement).
Note: If app is STOPPED at breakpoint, resume with continue_execution() first.
Preferred over ui_click for buttons, menu items, and hyperlinks because it works reliably even when the element is off-screen or partially obscured. Falls back to Click() if InvokePattern is not supported.
Args: automation_id: AutomationId property name: Element's Name/Title property control_type: Control type (Button, MenuItem, Hyperlink, etc.) root_id: Optional AutomationId to scope search to a subtree xpath: Optional XPath expression (FlaUI backend only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| xpath | No | ||
| root_id | No | ||
| control_type | No | ||
| automation_id | No |