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
Parameters
Section titled “Parameters”| 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 |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "manage_prefabs", "arguments": { "action": "create", "selector": "…" }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "manage_prefabs", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/ManagePrefabsTool.cs (version 1.2.1). The client receives the same schema from tools/list.