arrange_row
Align multiple PCB parts in a row or column with fixed pitch or gap spacing, applying optional rotation, all in one undo step for KiCad.
Instructions
Line several parts up in a row or column in one undo step.
Args:
references: Parts in order, e.g. ['R1', 'R2', 'R3'].
start_x_mm, start_y_mm: Origin of the first part.
pitch_mm: Fixed origin-to-origin spacing. If omitted, parts are packed
courtyard-to-courtyard with gap_mm between them.
direction: 'x' (row, left to right) or 'y' (column, top to bottom).
gap_mm: Gap used when pitch_mm is omitted.
angle_deg: Optional absolute rotation applied to every part.
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": {
"references": "<references>",
"start_x_mm": "<start_x_mm>",
"start_y_mm": "<start_y_mm>"
},
"name": "arrange_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap_mm | No | ||
| pitch_mm | No | ||
| angle_deg | No | ||
| direction | No | x | |
| references | Yes | ||
| start_x_mm | Yes | ||
| start_y_mm | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||