app_expand_tree_node
Opens or closes a tree node and verifies the state change, so nested items become accessible when a tree control cannot be expanded.
Instructions
Open or close a node in a tree, and verify the state changed.
Trees were readable and could not be OPENED, so anything nested inside one did not exist as far as a caller was concerned.
Args: control_label: the tree's label. node_name: the node to open, matched by name. expand: True to open, False to close. dialog_title: which dialog, when several are open.
Returns:
{"ok": true, "node": ..., "expanded": bool, "changed": bool}. changed is false when it was already
in that state, which is a success rather than a no-op to
worry about.
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": {
"control_label": "<control_label>",
"node_name": "<node_name>"
},
"name": "app_expand_tree_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | ||
| node_name | Yes | ||
| dialog_title | No | ||
| control_label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||