execute_menu_item
Execute any Unity Editor menu command by specifying its menu path. Automates repetitive actions like creating game objects or opening windows.
Instructions
Executes a Unity menu item by path
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": {
"menuPath": "<menuPath>"
},
"name": "execute_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menuPath | Yes | The path to the menu item to execute (e.g. "GameObject/Create Empty") |