Optimize terminal strips
optimize_stripsRepack terminal strips into the fewest jumpered runs, removing empty spares and grouping like signals. Reports before/after counts first; applying renumbers unlocked terminals.
Instructions
Re-pack terminal strips to the fewest terminals: each net becomes one jumpered run sized to its wires (block capacity), empty spares go, like signals sit together, unlocked terminals are renumbered 1..n (locked ones keep their numbers). Multi-level and diode/LED blocks, cabled nets, and nets whose wires don't fit a run's clamp range (block wire_mm2) are left as they are. With spare_terminal_pct set (update_project), each packed strip ends with that share of its used terminals as empty spare terminals. Device connections never change. apply=false (default) only reports the before/after counts; ask the user before applying, since terminal numbers change.
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>"
},
"name": "optimize_strips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| strip | No | Strip tag; omit for every strip | |
| project_id | Yes |