wpf_find_elements
Find UI elements across open WPF windows by visible text, control type, AutomationId, name, or property filters; results include text, visibility, enabled state, and screen bounds.
Instructions
Query elements across all open windows. Filters combine with AND: automation_id (exact, case-sensitive AutomationProperties.AutomationId), 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 | ||
| automation_id | No | ||
| property_filter | No |