add_shader_graph_node
Add a concrete AbstractMaterialNode to an existing Shader Graph through GraphData, using an expected content hash to reject stale edits and auto-placing nodes on a grid when position is omitted.
Instructions
Add one concrete AbstractMaterialNode to an existing Shader Graph through GraphData. Pass contentHash from inspect_shader_graph as expectedContentHash so stale edits fail closed. When position is omitted, Creator Works MCP places the node on a 24-pixel grid to the right of the current graph without overlap. Open Shader Graph editor assets are rejected, and the original asset is restored if Unity import or shader compilation fails.
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": {
"assetPath": "<assetPath>",
"nodeType": "<nodeType>",
"expectedContentHash": "<expectedContentHash>"
},
"name": "add_shader_graph_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeType | Yes | ||
| position | No | ||
| assetPath | Yes | ||
| expectedContentHash | Yes |