connect_nodes
Connects a source node's output port to a target node's input port after validating port indexes in a Material Maker graph.
Instructions
Connect an output port to an input port after validating both indexes.
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": {
"from_node": "<from_node>",
"from_port": "<from_port>",
"to_node": "<to_node>",
"to_port": "<to_port>"
},
"name": "connect_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_node | Yes | ||
| to_port | Yes | ||
| from_node | Yes | ||
| from_port | Yes | ||
| material_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||