Skip to content

manage_prefabs

Manage Unity Prefabs: create from GameObject, apply/revert instance overrides, unpack prefab instances, save prefab assets, create variants, and get prefab info.

Category: Assets

Name Type Required Default Description
action string yes Action to perform on the prefab. One of: create, apply, unpack, save, create_variant, revert, get_info
selector string yes U-Selector to identify the target GameObject in the scene
path string Asset path for saving the prefab (required for create/create_variant, e.g. ‘Assets/Prefabs/MyPrefab.prefab’)
unpack_mode string "root" Unpack mode: ‘root’ unpacks only the outermost prefab, ‘completely’ unpacks all nested prefabs. One of: completely, root

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

{
"name": "manage_prefabs",
"arguments": {
"action": "create",
"selector": "…"
}
}

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

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