game_ui_menu
Add, remove, get, check, or clear PopupMenu and MenuBar items by node path to let AI assistants manage Godot in-game menus programmatically.
Instructions
PopupMenu/MenuBar: add/remove/get menu 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_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Item ID | |
| text | No | Item text (for add) | |
| index | No | Item index | |
| action | Yes | Action: get_items, add, remove, set_checked, clear | |
| checked | No | Checked state | |
| nodePath | Yes | Path to PopupMenu/MenuBar |