expand_node
Expands or collapses a tree node by path, waiting until it is usable and running expansion listeners so child-loading trees fill in; returns the updated UI snapshot.
Instructions
Expand (or collapse) a tree node given by its path, like clicking its toggle: ancestors are expanded on the way and expansion listeners run, so trees that load children on expand fill in. Says if the application vetoed it. Waits first (up to timeoutMs) until the component is visible, enabled, editable where needed, and not blocked by a modal dialog or busy overlay, so no wait_for is needed for a component that is about to become usable. Returns the new snapshot.
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": {
"ref": "<ref>",
"path": "<path>"
},
"name": "expand_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The tree | |
| path | Yes | Node path like Root/Child (the root may be left out) | |
| collapse | No | Collapse instead of expand | |
| timeoutMs | No | How long to wait for the component to become usable (default 10000) |