connect_shader_nodes
Connect two shader nodes in a material's node tree by specifying material, source node and socket, and destination node and socket.
Instructions
Connect two shader nodes in a material's node tree.
Args: material_name: Name of the material. from_node: Name of the source node. from_socket: Name of the output socket on the source node. to_node: Name of the destination node. to_socket: Name of the input socket on the destination node.
Returns: Confirmation dict.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||