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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"function_path": "<function_path>"
},
"name": "cleanup_material_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| function_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |