cleanup_material_graph
Remove orphaned or dead-end nodes from a material graph. Use dry-run to preview deletions before removing.
Instructions
Delete orphaned and/or dead-end nodes from a material graph.
WARNING: NEVER call this tool unless the user explicitly asks to clean up or delete unconnected nodes. Users may intentionally keep disconnected nodes as references, scratchpads, or work-in-progress. Deleting them without permission will cause data loss and frustration.
Args: mode: What to delete: "orphaned" — only nodes with NO connections at all (safest) "dead_ends" — nodes whose output goes nowhere (has inputs but no consumers) "all" — both orphaned and dead-ends dry_run: If true, reports what WOULD be deleted without actually deleting. Always use dry_run=true first to preview before deleting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | orphaned | |
| dry_run | No | ||
| material_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |