pcb_net_lengths
List routed lengths for nets matching a pattern, sorted by length, to review bus matching in KiCad PCB designs.
Instructions
List routed lengths for nets whose names match a glob or regular expression, sorted by length for bus matching review.
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": {
"source": "<source>",
"pattern": "<pattern>"
},
"name": "pcb_net_lengths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching nets to report | |
| source | Yes | Board name from config OR path to a .kicad_pcb file | |
| pattern | Yes | Glob or regular expression, e.g. DDR_* |