WPFVisualTreeMcp
未认领Let AI agents see, debug and drive running WPF apps - visual tree, bindings, screenshots, clicks and text input over MCP. Snoop + Playwright for AI.
安装
claude mcp add wpf-visual-tree -- C:/path/to/WpfVisualTreeMcp/publish/WpfVisualTreeMcp.Server.exe工具(28 个)
wpf_attach
Attach to a WPF application (supports autoinject for DLL injection)
wpf_capture_screenshot
Capture a screenshot of the window or element (returns image); mode='screen' captures real on-screen pixels including open popups, dropdowns and context menus
wpf_clear_binding_errors
Clear the captured binding errors list
wpf_click_element
Click a control — UI Automation invoke (Invoke/Toggle/Select/ExpandCollapse) by default, physical=true for a real OS mouse click (auto-scrolls into view), clicktype='double'/'right' for double/right clicks. State-changing.
wpf_diff
Diff two snapshots — measure exactly what a change moved (property from→to, added/removed)
wpf_evaluate_binding
Explain why a property has its value — value source, and for bindings a hop-by-hop path resolution pinpointing where a broken binding fails
wpf_explain_triggers
Evaluate Style and ControlTemplate triggers against the current state (condition, current value, active, setters) — 'why doesn't this trigger fire?'; and attribute a property's value to the style setter / active trigger that set it
wpf_export_tree
Export visual tree to XAML or JSON
wpf_find_elements
Query elements by type, x:Name, visible text, property values and visibility; results include text, automation id, enabled/visible state and screen bounds
wpf_find_elements_deep
Same query filters without result limit, across all windows including adorners/popups
wpf_get_binding_errors
List all captured binding errors
wpf_get_bindings
Get data bindings for an element (includes MultiBinding, converter, StringFormat)
wpf_get_data_context
Get DataContext type, properties, INPC status, and inheritance chain
wpf_get_element_properties
Get all dependency properties of an element
wpf_get_layout_info
Get layout information
wpf_get_resources
Enumerate resource dictionaries
wpf_get_styles
Get applied styles and templates
wpf_get_visual_tree
Get the visual tree hierarchy (default depth: 25, max: 100)
wpf_highlight_element
Visually highlight an element
wpf_list_processes
List all running WPF applications
wpf_revert_property
Undo wpfsetproperty edits (one, filtered, or all) — restores the prior binding/value/default.
wpf_select_item
Select an item in a ComboBox/ListBox/ListView/TabControl by visible text or index — works with virtualized items. State-changing.
wpf_send_keys
Send a keyboard shortcut (Ctrl+S, Alt+F4, F5, Enter, ...) to an element or the focused window. State-changing.
wpf_set_property
Live-edit a dependency property at runtime (type-converted), to test a change without rebuilding. State-changing, reversible.
wpf_set_text
Set text/value of a TextBox/ComboBox/PasswordBox — UI Automation IValueProvider.SetValue by default, physical=true to type via OS keyboard input. State-changing.
wpf_snapshot
Capture an element subtree's state (layout, visibility, brushes, text) under a label
wpf_wait_for
Wait until an element is visible/exists/enabled/hidden, polling in the target app — no sleep-and-retry loops.
wpf_watch_property
Monitor a property for changes