game_ui_item_list
Get, select, add, remove, or clear items in Godot ItemList and OptionButton nodes by path, with optional index and text for item operations.
Instructions
ItemList/OptionButton: get/select/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_item_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Item text (for add) | |
| index | No | Item index | |
| action | Yes | Action: get_items, select, add, remove, clear | |
| nodePath | Yes | Path to ItemList/OptionButton |