si_bind_interfaces_to_net_classes
Map interface specs to KiCad net classes and generate pcb_set_net_class() calls to enforce impedance, clearance, and diff-pair rules.
Instructions
Map interface specs from the project design intent to KiCad net classes.
For each interface with an impedance target, this tool generates the
pcb_set_net_class() calls needed to enforce clearance and diff-pair rules.
When dry_run=True (default), only returns the plan without executing it.
Args: interfaces: List of InterfaceSpec dicts from project_get_design_spec(). dry_run: If True, return the mapping plan without modifying the project. Set to False to have the tool call pcb_set_net_class() for each class.
Returns: Net class plan or confirmation of changes applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| interfaces | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |