wpf_select_item
Selects items in WPF ComboBox, ListBox, ListView or TabControl controls by visible text or zero-based index, working even with virtualized items. Raises proper selection events and reports available items on failure.
Instructions
Select an item in a ComboBox, ListBox, ListView or TabControl by visible text (item_text, case-insensitive substring) or zero-based index. PREFER this over clicking for dropdowns/lists: it works even when items are virtualized (not yet in the visual tree) and raises proper selection events. On failure the error lists the available items. STATE-CHANGING. Target by exactly one of element_handle or automation_id (exact, case-sensitive AutomationProperties.AutomationId). Use root_handle with automation_id to scope lookup; missing or duplicate IDs fail before input.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wpf_select_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| item_text | No | ||
| root_handle | No | ||
| automation_id | No | ||
| element_handle | No |