ui_realize_virtualized_item
Force a virtualized list or grid item into the visual tree so UI automation can find and interact with it. Resolves missing AutomationElements for items outside the viewport.
Instructions
Realize a virtualized list or grid item so it enters the visual tree.
Virtualized lists (VirtualizingStackPanel with VirtualizationMode=Recycling) only create UI elements for visible rows. Items outside the viewport are "virtualized" — they exist in the data source but have no AutomationElement. This tool forces the item into the visual tree so subsequent ui_click or ui_find_element calls can reach it.
Operation is idempotent: re-realizing an already-realized item is safe and returns {realized: true} without error.
Returns: {realized: true, element_id: "...", bounding_rect: {x, y, width, height}} on success. {realized: false, reason: "item not found"} if the item is not in the data source. {realized: false, reason: "container does not support ItemContainerPattern"} if the container is not a virtualizing list.
Args: container_automation_id: AutomationId of the list/grid container. prop_name: Property to search by. Supported: "AutomationId", "Name", "ClassName". value: Value to match against the chosen property.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"container_automation_id": "<container_automation_id>",
"prop_name": "<prop_name>",
"value": "<value>"
},
"name": "ui_realize_virtualized_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| prop_name | Yes | ||
| container_automation_id | Yes |