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.
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": {
"material_path": "<material_path>",
"node_index": "<node_index>"
},
"name": "trace_material_connection"
}
}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 |