Batch Add Components
batch_add_componentsBatch-add multiple components to a KiCad schematic in one call, minimizing round-trips. Specify symbol, reference, position, and optional fields for each; get per-component placement info.
Instructions
Add multiple components to a schematic in one call (far fewer round-trips than add_schematic_component). Each component: {symbol:'Library:Name', reference, value?, footprint?, position:{x,y}, rotation?, includePins?}. Reference/Value fields are auto-positioned outside the body (disable with auto_position_fields=false). Returns per-component snapped position, field positions, body_bbox, and an overall placement_bbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin_x | No | X offset added to every component position (mm) | |
| origin_y | No | Y offset added to every component position (mm) | |
| components | Yes | Components to place | |
| schematicPath | Yes | Path to the .kicad_sch file | |
| auto_position_fields | No | Auto-place Ref/Value fields outside the body (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |