ui_realize_virtualized_item
Forces a virtualized UI item into the visual tree for interaction. Use when an item is not visible due to virtualization, ensuring it can be clicked or found.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_automation_id | Yes | ||
| prop_name | Yes | ||
| value | Yes |