Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Closes the open Unity prefab edit stage, optionally saving changes back to the prefab asset first.
36% 100%+64 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
Close currently opened prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first.
save (default true) — when true, calls PrefabUtility.SaveAsPrefabAsset before exiting the stage; when false, the save is skipped. The prefab stage's dirtiness is always cleared at the end, so any unsaved changes are discarded when save is false.Throws when no prefab stage is currently open. Returns an AssetObjectRef for the closed prefab asset.
unity-mcp-cli run-tool assets-prefab-close --input '{
"save": false
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool assets-prefab-close --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool assets-prefab-close --input-file - <<'EOF' {"param": "value"} EOF
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.