ui_collapse
Collapse a TreeView node, ComboBox dropdown, or other collapsible element via its AutomationId. Returns whether it was already collapsed.
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.
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": {
"automation_id": "<automation_id>"
},
"name": "ui_collapse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes |