Unity Execute Menu Item
unity_execute_menu_itemExecute a Unity Editor menu command by providing its path, like 'File/Save' or 'Assets/Refresh', to automate editor workflows.
Instructions
Execute a Unity Editor menu item by its path (e.g. 'File/Save', 'Assets/Refresh').
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 |
|---|---|---|---|
| menuPath | Yes | Menu item path (e.g. 'File/Save'). | |
| timeoutMs | No | Command timeout. |