Unnamed Skill

Execute Unity MenuItem via uloop CLI. Use when you need to: (1) Trigger menu commands programmatically, (2) Automate editor actions (save, build, refresh), (3) Run custom menu items defined in scripts.

$ 安裝

git clone https://github.com/hatayama/uLoopMCP /tmp/uLoopMCP && cp -r /tmp/uLoopMCP/.claude/skills/uloop-execute-menu-item ~/.claude/skills/uLoopMCP

// tip: Run this command in your terminal to install the skill


name: uloop-execute-menu-item description: Execute Unity MenuItem via uloop CLI. Use when you need to: (1) Trigger menu commands programmatically, (2) Automate editor actions (save, build, refresh), (3) Run custom menu items defined in scripts.

uloop execute-menu-item

Execute Unity MenuItem.

Usage

uloop execute-menu-item --menu-item-path "<path>"

Parameters

ParameterTypeDefaultDescription
--menu-item-pathstring-Menu item path (e.g., "GameObject/Create Empty")
--use-reflection-fallbackbooleantrueUse reflection fallback

Examples

# Create empty GameObject
uloop execute-menu-item --menu-item-path "GameObject/Create Empty"

# Save scene
uloop execute-menu-item --menu-item-path "File/Save"

# Open project settings
uloop execute-menu-item --menu-item-path "Edit/Project Settings..."

Output

Returns JSON with execution result.

Notes

  • Use uloop get-menu-items to discover available menu paths
  • Some menu items may require specific context or selection