Skip to content

repair_materials

Repair material issues by upgrading shaders to the current render pipeline. Can automatically fix pink materials and pipeline incompatibilities.

Category: Materials

Name Type Required Default Description
scope string "scene" Scope of repair. One of: scene, project, selection
dry_run boolean true Preview changes without applying them
target_shader string Specific shader to upgrade to (auto-detected if not specified)
fix_missing_shaders boolean true Replace materials with missing shaders
upgrade_legacy boolean true Upgrade legacy/built-in shaders to pipeline shaders

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

{
"name": "repair_materials",
"arguments": {}
}

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

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