wpf_find_elements
Query WPF UI elements across all windows using filters like text, type name, and visibility. Returns detailed info to interact with the right element.
Instructions
Query elements across all open windows. Filters combine with AND: type_name (partial match, e.g. 'Button' matches 'System.Windows.Controls.Button'), element_name (x:Name substring), text (visible text content — matches a Button's caption, TextBlock text, Window title, AutomationProperties.Name, ToolTip; case-insensitive substring), property_filter (object of property name → expected value substring, e.g. {"IsEnabled": "True"}), visible_only (exclude collapsed/hidden elements — recommended when looking for something the user can see). PREFER text over dumping the tree: e.g. text='Save' + type_name='Button' finds the Save button directly. Results include text, automationId, isVisible, isEnabled and screenBounds (device pixels) so you can pick the right element without extra calls. Returns up to max_results (default 50).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| type_name | No | ||
| max_results | No | ||
| root_handle | No | ||
| element_name | No | ||
| visible_only | No | ||
| property_filter | No |