connect_material_expressions
Connect two material expression nodes by index, linking output pins to input pins or material properties.
Instructions
Connect two expression nodes using their indices.
Args: from_node: Source node index to_node: Target node index (e.g. "5") or "material" for material output to_pin: Input pin name, or material property when to_node="material": BaseColor, Metallic, Specular, Roughness, Anisotropy, EmissiveColor, Opacity, OpacityMask, Normal, Tangent, WorldPositionOffset, Displacement, SubsurfaceColor, CustomData0, CustomData1, AmbientOcclusion, Refraction, PixelDepthOffset, ShadingModel, SurfaceThickness, FrontMaterial from_pin: Output pin name ("" = primary output)
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>",
"from_node": "<from_node>",
"to_node": "<to_node>",
"to_pin": "<to_pin>"
},
"name": "connect_material_expressions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_pin | Yes | ||
| to_node | Yes | ||
| from_pin | No | ||
| from_node | Yes | ||
| material_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |