collapse_element
Collapse an expanded UI element by providing its element ID, restoring its default collapsed state for reliable automation.
Instructions
Collapse an expanded element via the UIA ExpandCollapse pattern.
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": {
"elementId": "<elementId>"
},
"name": "collapse_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elementId | Yes | Element ID returned by find_element |