Rewire Node
node-red-flows-rewire-nodeRewires connections for a node in a flow tab, validating target IDs before updating.
Instructions
Replace wire connections for a specific node in a flow tab. Validates all target IDs exist in the flow.
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": {
"flowId": "<flowId>",
"nodeId": "<nodeId>",
"wires": "<wires>"
},
"name": "node-red-flows-rewire-node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wires | Yes | New wire connections as an array of port arrays | |
| flowId | Yes | ID of the target flow tab | |
| nodeId | Yes | ID of the node to rewire | |
| expectedRev | No | Optional revision guard for conflict detection |