cleanup_material_function
Remove unconnected and orphaned nodes from Material Functions, including duplicate inputs, outputs, and unused internal nodes. Use dry run to preview deletions.
Instructions
Remove unconnected/orphaned nodes from a Material Function.
Deletes:
FunctionOutput nodes with no input wired (duplicate output pins)
FunctionInput nodes whose output nobody consumes (duplicate input pins)
Orphaned internal nodes
WARNING: Only call when the user explicitly asks to clean up.
Args: dry_run: If true, reports what would be deleted without deleting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| function_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |