pcb_get_trace_lengths
Calculates total routed track length per net on the active PCB, optionally filtered by net, to support length matching and differential pair balance checks.
Instructions
Get total routed track length per net on the active PCB.
Sums all track segment lengths for each net. Useful for length matching analysis and checking differential pair balance.
Args: net: Optional net name filter. If provided, only returns the length for that specific net. Empty = all nets.
Returns: Dictionary with "trace_lengths" array (each with net name and length_mils) and "net_count"
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pcb_get_trace_lengths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||