# Uloop Execute Menu Item

> Execute Unity Editor menu commands programmatically. Use when you need to: (1) Trigger menu commands like save, build, or refresh, (2) Automate editor actions via menu paths, (3) Run custom menu items defined in project scripts.

- Skill: `hatayama/uloop-execute-menu-item` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hatayama/uloop-execute-menu-item`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hatayama/uloop-execute-menu-item/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: hatayama (https://skillmd.com/u/hatayama)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hatayama/uloop-execute-menu-item

---


# uloop execute-menu-item

Execute Unity MenuItem.

## Usage

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

## Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--menu-item-path` | string | - | Menu item path (e.g., "GameObject/Create Empty") |
| `--use-reflection-fallback` | boolean | `true` | Use reflection fallback |

## Global Options

| Option | Description |
|--------|-------------|
| `--project-path <path>` | Target a specific Unity project (mutually exclusive with `--port`) |
| `-p, --port <port>` | Specify Unity TCP port directly (mutually exclusive with `--project-path`) |

## Examples

```bash
# 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

