connect_shader_nodes
Connect two shader nodes within a material's node tree by specifying the material, source node and socket, and destination node and socket.
Instructions
Connect two shader nodes in a material's node tree.
Parameters:
material_name: Name of the material
from_node: Name of the source node
from_socket: Name or index of the output socket on the source node
to_node: Name of the destination node
to_socket: Name or index of the input socket on the destination node
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_name": "<material_name>",
"from_node": "<from_node>",
"from_socket": "<from_socket>",
"to_node": "<to_node>",
"to_socket": "<to_socket>"
},
"name": "connect_shader_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_node | Yes | ||
| from_node | Yes | ||
| to_socket | Yes | ||
| from_socket | Yes | ||
| material_name | Yes |