Update a pad
update_padUpdate specific pad properties in a PcbLib footprint by designator without replacing the whole component. Applies width/height/shape changes to stacked pad layers sharing the old primary value.
Instructions
Update specific properties of a pad in a PcbLib footprint without replacing the entire component. Find pad by designator and apply only the specified updates. On a stacked pad (stack_mode other than simple) a width/height/shape change also reaches the per-layer tables: layers that shared the old primary value follow it, layers with their own value keep it, and the response reports how many followed.
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": {
"filepath": "<filepath>",
"component_name": "<component_name>",
"designator": "<designator>",
"updates": "<updates>"
},
"name": "update_pad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, show what would change without saving (default: false) | |
| updates | Yes | Properties to update (only specified properties are changed) | |
| filepath | Yes | Path to the .PcbLib file | |
| designator | Yes | Pad designator (e.g., '1', '2', 'A1') | |
| component_name | Yes | Name of the footprint containing the pad |