trace_material_connection
Trace material node connections upstream or downstream to display input sources and output destinations, clarifying material data flow.
Instructions
Trace connections upstream and/or downstream from a specific node.
Shows exactly what feeds into each input pin and what consumes each output pin, including connections to material outputs (BaseColor, Normal, etc.).
Args: node_index: The node to trace from direction: "upstream" (what feeds in), "downstream" (what consumes output), or "both" (default) max_depth: How many hops to trace recursively (1 = immediate neighbors, 2+ = follow the chain). Max 50. Default 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | both | |
| max_depth | No | ||
| node_index | Yes | ||
| material_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |