repair_materials
Repair material issues by upgrading shaders to the current render pipeline. Can automatically fix pink materials and pipeline incompatibilities.
Category: Materials
Parameters
Section titled “Parameters”| 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 |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "repair_materials", "arguments": {}}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "repair_materials", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/MaterialDiagnosticTools.cs (version 1.2.1). The client receives the same schema from tools/list.