pcb_tune_length
Adds approximate routed length to a PCB net by placing a square serpentine meander at a chosen point, then reports the routed length before and after.
Instructions
Add approximate routed length to a net with a square serpentine.
Lays a square meander on net at (x_mils, y_mils) sized to add about
add_length_mils, then reports the net's routed length before and
after.
Open-loop and NOT DRC-checked: you choose where the meander goes and
verify clearance afterward (pcb_run_drc). Use it to get a net close to
a target, then finish in Altium's interactive tuner if needed. There is
no scriptable interactive tuner in Altium, so this is the available
approximation.
Args: net: net name. add_length_mils: target length to add (mils). x_mils, y_mils: anchor point of the meander (mils). layer: routing layer (default TopLayer). amplitude_mils: meander height; bump count = add_length / (2*amplitude). width_mils: track width.
Returns: {"length_before_mils", "length_after_mils", "added_mils", "bumps", "drc_checked": false}.
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": {
"net": "<net>",
"add_length_mils": "<add_length_mils>",
"x_mils": "<x_mils>",
"y_mils": "<y_mils>"
},
"name": "pcb_tune_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | ||
| layer | No | TopLayer | |
| x_mils | Yes | ||
| y_mils | Yes | ||
| width_mils | No | ||
| amplitude_mils | No | ||
| add_length_mils | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||