unity_execute_menu_item
Execute Unity Editor menu commands by specifying the full menu path, such as 'File/Save' or 'GameObject/3D Object/Cube'.
Instructions
Execute a Unity Editor menu command by its path (e.g. 'File/Save', 'GameObject/3D Object/Cube', 'Window/General/Console').
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": "unity_execute_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| menuPath | Yes | Full menu path (e.g. 'Edit/Project Settings...') |