Rig Edge
rig_edgeWire or unwire ONE edge between two EXISTING blocks of a canvas rig — 'connect the fetch step to the judge', 'route the critique back to revise when it says REVISE', 'disconnect A from B'. Identify both ends by node id, label, skill name, or 1-based position. Add guard ({source, op, value?}) to make the edge a CONDITIONAL route — how a loop gets its exit condition on a stateful_graph. remove: true drops the from→to edge instead. Re-wiring an edge that already exists UPDATES its kind/guard in place. Returns the fresh block-by-block summary incl. the full edge topology; the Builder canvas updates live. (rig_node_add's after wires only at creation — this is the tool for every rewiring after that.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination block: same identifiers | |
| from | Yes | Source block: node id, label, skill name, or 1-based position | |
| kind | No | 'data' (default) | 'control' | 'conditional' (implied when guard is set) | |
| guard | No | Take this edge ONLY when the condition holds — {source, op, value?}. `source` is a `{{node.port}}` channel ref; `op` = eq | not_eq | contains | gt | lt | truthy | exists. | |
| remove | No | true = drop the from→to edge instead of adding one | |
| rig_id | Yes | UUID of the rig (rig_search finds it) | |
| wallet_address | Yes | Owner scope |