shader_create_tree
Ensure any material has a node tree; create if absent. Optionally clear existing nodes except output for a clean shader setup.
Instructions
Ensure material has node tree. Create if not exists. clear_existing removes non-output nodes.
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>"
},
"name": "shader_create_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_name | Yes | ||
| clear_existing | No |