connect_shader_graph_nodes
Connect shader graph output and input slots by node IDs, verifying compatibility and occupancy with a content hash to block stale edits during transactional reimport and compile.
Instructions
Connect a real output slot to a real input slot by node object ids returned from inspect_shader_graph. Pass that inspection's contentHash so stale edits fail closed. The bridge verifies directions, compatibility, and that the input is unoccupied before GraphData.Connect, then reimports and compiles transactionally. Set replaceExistingInput=true only to explicitly replace an existing edge.
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>",
"sourceNodeId": "<sourceNodeId>",
"sourceSlotId": "<sourceSlotId>",
"destinationNodeId": "<destinationNodeId>",
"destinationSlotId": "<destinationSlotId>",
"expectedContentHash": "<expectedContentHash>"
},
"name": "connect_shader_graph_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetPath | Yes | ||
| sourceNodeId | Yes | ||
| sourceSlotId | Yes | ||
| destinationNodeId | Yes | ||
| destinationSlotId | Yes | ||
| expectedContentHash | Yes | ||
| replaceExistingInput | No |