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').
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...') |