game_ui_tree
Inspect and modify Godot Tree controls by retrieving, selecting, collapsing, expanding, adding, or removing items using node paths and slash-separated item indices.
Instructions
Tree control: get/select/collapse/add/remove items
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": {
"nodePath": "<nodePath>",
"action": "<action>"
},
"name": "game_ui_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Item text (for add) | |
| action | Yes | Action: get_items, select, collapse, expand, add, remove | |
| column | No | Column index. Default: 0 | |
| itemPath | No | Item path (slash-separated indices) | |
| nodePath | Yes | Path to Tree control |