wpf_find_elements
Search for UI elements across all open WPF windows using filters like type, name, text, and visibility. Returns element details including bounds and state for direct interaction.
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 |