add_shader_node
Insert a shader node (noise, voronoi, mix, value) into a material's node tree at a specified position to build custom materials.
Instructions
Add a shader node to a material's node tree.
Args: material_name: Target material. node_type: Shader node type (e.g., 'TEX_NOISE', 'TEX_VORONOI', 'MIXRGB', 'VALUE'). location: [x, y] position in the node editor. name: Optional node label.
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>",
"node_type": "<node_type>"
},
"name": "add_shader_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| location | No | ||
| node_type | Yes | ||
| material_name | Yes |