Development & QA · LocalCommander Windows

MCP Windows UI automation: inspect native desktop controls

Use structured Windows UI Automation tools to inspect controls, select unique identifiers and verify supported desktop actions.

Windows UI Automation differs from browser DOM automation. An accessible desktop application may expose a control tree with names, AutomationIds, types and bounds. LocalCommander Windows provides public tools for inspecting and interacting with supported native controls.

Identify the application

List visible windows and select the target by title or PID. Use ui_inspect_window to retrieve the accessibility tree. Look for stable control identifiers, type and state rather than relying only on screen position.

Find a unique selector

The ui_find tool supports semantic filters including name, AutomationId and control type. Narrow the match until it identifies one control. Reinspect if localization, layout or modal state changes.

Invoke or set a value

The ui_invoke and ui_set_value tools require write access. Ambiguous selectors fail unless an explicit index is supplied. Confirm the target and use harmless test data; stop before saving or submitting.

Verify the resulting state

Inspect the control again or use ui_wait_for to look for the expected state. If a modal appears or a value is rejected, report it and stop rather than repeating an uncertain click.

Handle unsupported controls

Custom-rendered controls, protected prompts and elevated windows can limit accessibility. Prefer a documented API, browser DOM interface or tested script when suitable. Do not bypass permission boundaries.

Try this prompt

After pairing and authorizing your device, adapt this example to your own permitted files and computer.

@LocalCommander Inspect the named test app using Windows UI Automation. Identify the text field and submit button by accessible attributes. Report whether selectors are unique without invoking controls.

Frequently asked questions

Why not just use mouse coordinates?

Semantic controls can be more robust against layout changes.

Can it inspect every app?

No. Applications differ in exposed accessibility controls and permissions.

What about web content?

Prefer structured browser DOM tools for supported web pages.

Documentation and references

LocalCommander Windows

Put AI to work on your own PC.

Check availability, pair a device and start with a read-only task.

Get started