MCP server for Windows UI automation using FlaUI (Friendly Language for UI Automation). Provides tools for interacting with Windows applications via UI Automation patterns.
FlaUI-MCP demonstrates solid tool design with 15 well-named, action-verb-prefixed tools (windows_click, windows_assert, windows_batch, etc.). All tools have descriptions (avg ~180 chars, within 10-1024 baseline). Input schemas are present and properly typed with JSON Schema. However, output schemas are NOT documented, critical gap per pattern:tool. Parameter descriptions are present but some lack detail on constraints (e.g., windows_batch 'timeoutMs' lacks min/max bounds). Error handling is basic (generic error messages, no recovery guidance). Tool composition is strong: single-responsibility design, proper chaining via element refs. Missing: output schema documentation, detailed parameter constraints, error classification guidance.
Assert that a UI condition holds right now (single evaluation, no polling). Returns 'ASSERT [PASS] ...' or 'ASSERT [FAIL] ...' for easy parsing. Use windows_wait_for before asserting on async conditions. In windows_batch with stopOnError:true, a failed assert stops the batch — useful for building structured test cases.
Attach to an already-running Windows process by PID or executable name. Returns window handles for every UIA-visible window the process owns — including hidden/untitled windows typical of tray-resident apps. Provide exactly one of 'pid' or 'processName'.
Execute multiple actions in a single call. Much faster than individual calls. Supports click, type, fill, wait, waitFor, snapshot, keys, hover, scroll, assert, and drag actions. Returns results for each action.
Click an element by its ref (from windows_snapshot). Prefers Invoke pattern for reliability, falls back to mouse click if needed. Retries automatically on transient UIA errors.
Open a context menu by right-clicking an element (or sending Shift+F10 / VK_APPS) and register the resulting menu as a popup handle. Use windows_snapshot with the returned handle to list menu items, then windows_click to activate one. Warning: context menus dismiss on focus loss — snapshot and click immediately without calling any other window-enumeration tools in between.
Output schemas not documented. Tools return structured results (TextResult, ImageResult, ErrorResult) but LLMs cannot see what fields to expect. Breaks pattern:tool and pattern:response-shaper.
Numeric parameter constraints missing. windows_batch 'timeoutMs', 'pollMs', 'durationMs' lack min/max bounds. LLMs can pass absurd values (negative, zero, 999999999). Violates pattern:constrained-input.
Error messages are generic ('Error: {ex.Message}'). No recovery guidance, no error classification (retryable vs fatal). Violates pattern:recovery-guide and pattern:error-classification.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 52 | 2026-07-28+ | v2 |
Drive Win32 common dialogs (#32770: File Open/Save, message boxes). Polls for or resolves a dialog, optionally fills path / picks filter, then invokes the terminal button. action='wait' returns the popup handle without taking action; 'accept' presses Open/Save/OK; 'cancel' presses Cancel; 'click' presses the button named by 'button'. Path is set via the Value pattern; filter via SelectionItem on the type combo. Dialog is auto-registered as an 'm*' popup handle usable with windows_snapshot.
Dismiss an open context menu by sending Escape and remove its popup handle from the registry. Call this after you have finished with a context menu (clicked an item or want to cancel). The popup handle becomes invalid after this call.
Drag from one element to another using mouse press + interpolated move + release. Provide 'toRef' to drop on a target element, or 'toX'+'toY' for absolute screen coordinates. Increase durationMs for apps that require smooth drag movement.
Return the element that currently holds keyboard focus, system-wide. Auto-registers the owning window if needed and returns a new element ref usable with windows_click, windows_inspect, windows_get_value, etc. Use after Tab/Shift+Tab navigation or to discover which control received focus after a launch.
Read the current text content of the system clipboard (CF_UNICODETEXT). Returns the text directly so the agent can inspect or process it without keyboard shortcuts. Returns an explicit message when the clipboard is empty or contains non-text data.
Get the text content of an element. Returns the Value pattern content for text inputs, or the element Name property as fallback.
Access a Grid or Table cell directly by (row, col) index via UIA GridPattern.GetItem. Returns a new element ref registered to the same window — usable immediately with windows_click, windows_get_value, windows_inspect, etc. Works on virtualized data grids where offscreen cells are absent from the snapshot tree. row and col are 0-based.
Move the mouse pointer to an element to trigger hover-only UI (tooltips, hover menus). Does not click. Take a snapshot after hovering to observe the resulting state.
Dump all UIA properties (AutomationId, ClassName, BoundingRect, ProcessId, …) and supported patterns (Invoke, Toggle, Value, RangeValue, Grid, …) for one element. Use before writing assertions to discover precise selectors, or to understand which interaction tool fits the element. Patterns section includes current pattern state values.
Write text to the system clipboard. Passes the text to any subsequent Paste operation (Ctrl+V / windows_keys). An empty string clears the clipboard.
Mutually exclusive parameters not documented. windows_assert accepts 'ref' OR ('handle' + 'selector'), windows_drag accepts 'toRef' OR ('toX' + 'toY'). LLMs will pass both unless told not to. Violates pattern:tool-description.
No dry-run or confirmation for destructive operations. windows_batch with stopOnError:true can fail mid-sequence, leaving UI in partial state. No compensation tools to undo. Violates pattern:confirmation-request.