Skip to content

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

Name Type Required Default Description
menu_path string yes Full path to the menu item (e.g., ‘File/Save Scene’, ‘GameObject/Create Empty’)

The arguments below are the required ones; add the optional ones you need.

{
"name": "execute_menu_item",
"arguments": {
"menu_path": "…"
}
}

When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "execute_menu_item", "args": { … }}. See SuperSave mode.

Generated from Assets/NanoraUnityMCP/Editor/Tools/ExecuteMenuItemTool.cs (version 1.2.1). The client receives the same schema from tools/list.