execute_menu_item
Executes a Unity Editor menu item by its path (e.g., ‘File/Save’, ‘Edit/Undo’), including project-defined menus. Menu items that can reload the script domain (such as Assets/Refresh) are queued and the response returns before they run,
Category: Code
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
menu_path |
string | yes | Full path to the menu item (e.g., ‘File/Save Scene’, ‘GameObject/Create Empty’) |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "execute_menu_item", "arguments": { "menu_path": "…" }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "execute_menu_item", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/ExecuteMenuItemTool.cs (version 1.2.1). The client receives the same schema from tools/list.