Update wire
update_connectionChange one existing wire by ID, updating endpoints, signal, gauge, note, draw mode, bundle tag, or length; omitted fields remain unchanged.
Instructions
Change one wire (grid row) by id: either end, signal, note, draw mode, gauge, bundle tag, or length (in the project's unit; null clears). Omitted fields stay the same; note "" clears it, gauge "" goes back to the signal type's gauge, bundle "" clears the tag.
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": {
"project_id": "<project_id>",
"connection_id": "<connection_id>"
},
"name": "update_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | "TAG:TERMINAL", e.g. "PLC_MAIN:24V" | |
| draw | No | auto (default), force a drawn wire, or force reference flags | |
| from | No | "TAG:TERMINAL", e.g. "PSU1:+24V" | |
| note | No | ||
| gauge | No | Wire gauge: AWG ("18", "14 AWG", "1/0") or mm² ("1.5 mm²"). A bare number follows the project's gauge units. Default: the signal type's gauge. | |
| bundle | No | Free tag for loose wires that run together ("duct-1"), so their count derates ampacity. Ignored on cable conductors (the cable is the bundle). | |
| length | No | Wire length in the project's length unit (ft default, or m; update_project length_unit), for the voltage-drop check. null clears it. Cable conductors inherit the cable's length. | |
| signal | No | Signal type name or id. Default: the From terminal's Codex signal. | |
| project_id | Yes | ||
| connection_id | Yes |