agentleFS
AlexeyPerovAlexeyPerov/Unity-Open-MCP/skills/extensions/navigation/SKILL.md

navigation

Skill15 starsChanged 5 months agoMITView on GitHub

Skill for AI agents driving NavMesh / AI Navigation in a Unity project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.ai.navigation installed (the bridge sets the UNITY_OPEN_MCP_EXT_NAVIGATION define automatically). Its tool group is hidden from ListTools until the connected session activates it. - Unity Editor is open with the target project. - unity_open_mcp_ping returns connected: true. - The project has com.unity.ai.navigation installed. If capabilities…

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use testing.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All tools in this pack use unity_open_mcp_navigation_*.

    line 24
  2. Very specific:

    After bake, navigation_get on the surface host reports hasNavMeshData: true.

    line 37
  3. Very specific:

    When a typed mutator does not cover a field, use unity_open_mcp_navigation_modify:

    line 56

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity Open MCP — Navigation (NavMesh) Extension

Skill for AI agents driving NavMesh / AI Navigation in a Unity project through the unity-open-mcp MCP server.

This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.ai.navigation installed (the bridge sets the UNITY_OPEN_MCP_EXT_NAVIGATION define automatically). Its tool group is hidden from ListTools until the connected session activates it.

Preconditions

  • Unity Editor is open with the target project.
  • unity_open_mcp_ping returns connected: true.
  • The project has com.unity.ai.navigation installed. If capabilities reports the navigation group as available: false, install the package and let the bridge recompile.
  • The navigation tool group is activated — call unity_open_mcp_manage_tools(action="activate", group="navigation") before invoking any navigation_* tool. Fresh sessions start with two default-on groups (core and gate-and-verify); activate the other groups you need on demand.

Tool prefix

All tools in this pack use unity_open_mcp_navigation_*. Mutating tools accept the standard paths_hint (the host's scene path) and run the full gate path; read-only tools (navigation_list, navigation_get) are gate-free.

Canonical workflow: walkable agent

  1. Discover — unity_open_mcp_navigation_list to see existing surfaces / agents / links / modifiers.
  2. Add a surface — unity_open_mcp_navigation_surface_add on a host GameObject. Set agent_type: "Humanoid" (default) and collect_objects: "All" to bake all scene geometry.
  3. (Optional) Configure — unity_open_mcp_navigation_set_bake_settings for collect_objects: "Volume" + collection_extent to bake only a sub-region.
  4. Bake — unity_open_mcp_navigation_surface_bake. This is the heavy op (EditorSettle lifecycle) — the dispatcher waits for asset refresh before returning. Returns hasNavMeshData: true + a navMeshDataInstanceId.
  5. Place an agent — unity_open_mcp_navigation_agent_add on the GameObject that should walk. Configure radius, height, speed, angular_speed, acceleration, stopping_distance.
  6. Drive it — unity_open_mcp_navigation_agent_set_destination with a world-space x,y,z. Requires Play Mode — the pathfinder only runs at runtime. Returns pathStatus: Valid | Partial | Invalid + pathPending.

Verifying the bake

After bake, navigation_get on the surface host reports hasNavMeshData: true. If hasNavMeshData: false, the bake produced no geometry — check:

  • The surface's collect_objects mode (Volume needs a valid collection_extent overlapping walkable geometry).
  • The geometry has a collider and is on a layer included in the surface's layerMask (use navigation_modify on NavMeshSurface to set layerMask).
  • The agent type is registered (open the Navigation window once to register the default "Humanoid" agent).

Off-mesh traversal

For jumps, drops, gaps, or any traversal the bake cannot infer:

  • unity_open_mcp_navigation_link_add on a GameObject between the two NavMesh positions. Set start_pos / end_pos (local space), width (0 = point-to-point), bidirectional (default true), cost_modifier (-1 = default).

For area-cost overrides on individual objects:

  • unity_open_mcp_navigation_modifier_add — override the NavMesh area (e.g. mark a door as "Door" so it costs more to traverse) or ignore: true to skip the object during baking.
  • unity_open_mcp_navigation_modifier_volume_add — re-tag the NavMesh inside a volume to a specific area (size + center in local space).

Reflective mutation (niche fields)

When a typed mutator does not cover a field, use unity_open_mcp_navigation_modify:

{
  "component_type": "NavMeshAgent",
  "fields_json": "[{\"field\":\"speed\",\"value\":5.5,\"type\":\"float\"},{\"field\":\"autoBraking\",\"value\":true,\"type\":\"bool\"}]",
  "paths_hint": ["Assets/Scenes/Game.unity"]
}

Each entry is { field, value, type? } where type is int | float | bool | string | vector (default inferred from the field's current type). Per-field errors are accumulated — a single bad entry does not abort the batch. Prefer the typed tools for the common cases; reach for modify only for fields not covered by a typed mutator.

Common recipes

Bake a small playable level

  1. navigation_surface_add on an empty GameObject named "NavMesh" with collect_objects: "All".
  2. navigation_surface_bake — wait for hasNavMeshData: true.
  3. navigation_agent_add on the player GameObject with radius: 0.5, speed: 3.5.
  4. Enter Play Mode (unity_open_mcp_editor_set_state with state: "play").
  5. navigation_agent_set_destination to a point inside the baked area.

Two-tier level with a jump link

  1. Bake two surfaces (one per tier) OR one surface collecting all geometry.
  2. navigation_link_add on a GameObject positioned between the tiers with start_pos: "0,0,0" and end_pos: "0,2,0".
  3. Bake. The link is traversable in both directions by default.

Avoid an obstacle without re-baking

  1. navigation_modifier_add on the obstacle GameObject with ignore: true.
  2. Re-bake the surface — the obstacle is skipped.

Agent-sense pairing

  • unity_senses_spatial_query (action: "ground_check") finds the surface point below a target — useful for picking a valid destination before navigation_agent_set_destination.
  • unity_senses_screenshot (view: "scene") visually confirms the bake (the NavMesh renders as a blue overlay in the Scene view).

Tool reference

ToolMutatingLifecycleNotes
navigation_surface_addyeseditor_settleIdempotent — re-using reports added:false.
navigation_set_bake_settingsyeseditor_settleRefuses if host has no NavMeshSurface.
navigation_surface_bakeyeseditor_settleHeavy op — runs the bake synchronously.
navigation_modifier_addyeseditor_settleArea override or ignore: true.
navigation_modifier_volume_addyeseditor_settleRe-tags NavMesh inside a volume.
navigation_link_addyeseditor_settleOff-mesh traversal (jump / drop / gap).
navigation_agent_addyeseditor_settleConfigure radius / speed / etc.
navigation_agent_set_destinationyesnonePlay Mode only — agent won't move in Edit Mode.
navigation_listnononeLists every NavMesh component in the open scene(s).
navigation_getnononeFull detail for one target's NavMesh components.
navigation_modifyyeseditor_settleReflective field setter for niche fields.

Address every target by instance_id > path > name (same model as gameobject_* / component_*). Every mutating tool requires a non-empty paths_hint scoped to the host's scene path — the gate has no whole-project fallback.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.