unity_execute_menu_item
Execute any Unity Editor menu command by its exact path, such as 'File/Save' or 'GameObject/3D Object/Cube'. Specify the menu path and target Unity instance to automate editor actions.
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 |
|---|---|---|---|
| menuPath | Yes | Full menu path (e.g. 'Edit/Project Settings...') | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |