Board setup: design rules, layers, copper, net classes
pcb_rulesRead and modify PCB design rules and board setup, including clearances, track widths, via sizes, copper layers, net classes, and differential pairs for DRC-ready layout.
Instructions
Design rules and board setup for any board type (all sizes in mm). action "read": summary of the active rules (clearances, track widths, via sizes, plane/pour connection, mask expansion), layers and net classes. action "set": clearance (copper↔copper), pourClearance, boardEdgeClearance, holeToHole, track {min,default,max}, via {diameter,hole,minDiameter,minHole}, copperWeight "1oz"|"2oz", padConnection "thermal"|"direct" (+ spokeWidth, spokeClearance), solderMaskExpansion. action "patch": raw edits [{path:"Physics/Via Size/viaSize/form/viaOuterdiameterDefault", value}] on the rule JSON. action "layers": copper layer count (2/4/6…). action "layer_modify": layer (id or name), name, type SIGNAL|PLANE (inner layers), color. action "net_class": name + nets. action "diff_pair": name, positive, negative.
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": {
"action": "<action>"
},
"name": "pcb_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | ||
| name | No | ||
| nets | No | ||
| type | No | ||
| color | No | ||
| edits | No | ||
| layer | No | ||
| track | No | ||
| action | Yes | ||
| layers | No | ||
| negative | No | ||
| positive | No | ||
| clearance | No | ||
| holeToHole | No | ||
| spokeWidth | No | ||
| copperWeight | No | ||
| padConnection | No | ||
| pourClearance | No | copper pour/plane to other objects | |
| spokeClearance | No | ||
| boardEdgeClearance | No | ||
| solderMaskExpansion | No |