ui_collapse
Collapse a TreeView node, ComboBox dropdown, or other collapsible UI element by providing its AutomationId. Safe to use on already-collapsed elements.
Instructions
Collapse a TreeView node, ComboBox dropdown, or other collapsible element.
Uses ExpandCollapsePattern. Collapsing an already-collapsed element is safe and returns {collapsed: true, was_already: true}.
Args: automation_id: AutomationId of the element to collapse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes |