About Kicad MCP Server
Kicad MCP Server is an MCP server published by mixelpixx in the AI category: kiCAD MCP is a Model Context Protocol (MCP) implementation that enables Large Language Models (LLMs) like Claude to directly interact with KiCAD for printed circuit board design. Conduid read 266 tools from its source: add_board_outline, add_board_text, add_component_3d_model, add_copper_keepout, add_copper_pour, add_footprint_3d_model and 260 more. No package is published for it, so it installs from a source checkout.
The repository has 3.7K stars and 490 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v2.9.0 (12 Nov 2026): Board inspection tools, operating modes, autorouting by layer and by net, and a large batch of fixes, most of them found on real boards. It follows v2.8.3 (26 Oct 2026), and the 5 most recent releases go back to v2.8.0 (24 Sep 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions.
Install
git clone https://github.com/mixelpixx/KiCAD-MCP-ServerTools (266)
add_board_outlineCreate board edge (rectangle, circle, polygon, rounded rectangle)| Parameter | Type | Description |
|---|---|---|
| params | object | Width of rectangle |
| shape * | string | Shape of the outline |
add_board_textAdd text annotations| Parameter | Type | Description |
|---|---|---|
| layer * | string | Layer to place the text on |
| position * | object | X coordinate |
| rotation | number | Rotation angle in degrees |
| size * | number | Text size |
| style | string | Text style |
| text * | string | Text content |
| thickness | number | Line thickness |
add_component_3d_modelAttach a 3D model to one or more PLACED footprints on the open board, live via the KiCAD IPC API (changes appear instantly, no file conflicts). Use this for components already on the PCB; for a library .kicad_mod use add_footprint_3d_model.| Parameter | Type | Description |
|---|---|---|
| modelPath * | string | Path to the 3D model, e.g. ${KIPRJMOD}/MyProj.3dshapes/MyPart.step |
| reference * | any | Footprint reference(s), e.g. 'D1', ['D1','D2'], or '*' for all footprints |
| replace | boolean | Replace an existing model with the same filename (default true) |
add_copper_keepoutAdd a live KiCad rule area that excludes copper zone fill on the selected enabled copper layers. Tracks, vias, pads and footprints remain allowed. Requires an open PCB editor; save the board separately.| Parameter | Type | Description |
|---|---|---|
| boardPath * | string | Exact .kicad_pcb path open in the PCB editor |
| layers * | array | Exact enabled copper layers, for example F.Cu, In1.Cu, B.Cu |
| name * | string | Name shown for the rule area |
| points * | array | Simple polygon vertices in millimetres, without a repeated closing vertex |
add_copper_pourCreate copper zones/pours| Parameter | Type | Description |
|---|---|---|
| clearance | number | Clearance in mm |
| fillType | string | Fill style (default solid) |
| layer * | string | PCB layer |
| minWidth | number | Minimum fill width in mm (default 0.2) |
| net * | string | Net name |
| outline | array | Array of {x, y} points defining the pour boundary. If omitted, the board outline is used. |
| padConnection | string | How pads of the zone's net connect: thermal reliefs (default), solid copper (for high-current pads), or not at all |
| priority | number | Zone priority (default 0). Overlapping zones on one layer need distinct priorities; the higher one fills first. |
add_footprint_3d_modelAttach (or replace) a 3D model — .step/.stp/.wrl — to a .kicad_mod footprint file. KiCAD path variables like ${KIPRJMOD} or ${KICAD10_3DMODEL_DIR} are supported. Use this after create_footprint so the part shows up in the 3D viewer (Alt+3).| Parameter | Type | Description |
|---|---|---|
| footprintPath * | string | Full path to the .kicad_mod file, e.g. C:/MyLib.pretty/MyPart.kicad_mod |
| modelPath * | string | Path to the 3D model file. Prefer ${KIPRJMOD}/MyProj.3dshapes/MyPart.step for portability. |
| replace | boolean | Replace an existing model with the same filename (default true) |
add_gnd_stitching_viasStitch a ground plane with vias| Parameter | Type | Description |
|---|---|---|
| clearance | number | Extra clearance beyond required between each new via and existing copper, in mm (default 0.2). |
| densifyRadius | number | How many grid cells around each ref to try (default 2 = 5x5 candidate field per ref). |
| densifyRefs | array | Reference designators to densify ground around (used by `around_refs`). Targets: MCUs, switching regulators, RF parts. |
| dryRun | boolean | If true, return the placements that would be made but don't modify the board (default false). |
| edgeMargin | number | Keep-out from the board edge in mm (default 0.5). |
| gndNet | string | Name of the ground net (default: auto-detect GND / GROUND / VSS / /GND). |
| maxVias | number | Cap on total placements across all strategies (default unlimited). |
| spacing | number | Grid spacing in mm for `grid` and `around_refs` strategies (default 5.0). |
| strategies | array | Which placement strategies to combine (default: ['grid']). Pass ['grid', 'around_refs', 'in_zones'] for full coverage. |
| viaDrill | number | Via drill diameter in mm (default 0.3). Must be smaller than viaSize. |
| viaSize | number | Via pad diameter in mm (default 0.6). |
add_hierarchical_sheetInsert a hierarchical-sheet reference block into a parent schematic, pointing at an existing sub-sheet file. Adds the sheet box, name/file fields, a sheet_instances path entry on the next page number, and fixes sub-sheet component instance paths so ERC resolves references.| Parameter | Type | Description |
|---|---|---|
| position | object | Top-left of the sheet box in mm (default 50,50) |
| schematicPath * | string | Path to the parent .kicad_sch |
| sheetName | string | Display name for the sheet |
| size | object | Sheet box size in mm (default 80x50) |
| subsheetPath * | string | Path to the existing sub-sheet .kicad_sch to reference |
add_layerAdd custom layers to stack| Parameter | Type | Description |
|---|---|---|
| name * | string | Layer name |
| number | number | Layer number (for inner layers) |
| position * | string | Layer position |
| type * | string | Layer type |
add_library_symbol_propertyAdd or update a custom property (Manufacturer, MPN, LCSC, etc.) on a symbol definition in the lib_symbols section. This makes the property available to all instances of that symbol in the schematic.| Parameter | Type | Description |
|---|---|---|
| hide | boolean | Hide the property (default false) |
| libraryName * | string | Symbol library nickname (e.g. Device, power) |
| position | object | Position {x, y} in mm (default: 0, 0) |
| propertyName * | string | Property name (e.g. Manufacturer, MPN) |
| propertyValue * | string | Property value |
| schematicPath * | string | Path to the .kicad_sch file |
| symbolName * | string | Symbol name (e.g. R, C, GND) |
add_mounting_holePlace mounting holes| Parameter | Type | Description |
|---|---|---|
| diameter * | number | Diameter of the hole |
| padDiameter | number | Optional diameter of the pad around the hole |
| position * | object | X coordinate |
add_netCreate electrical net| Parameter | Type | Description |
|---|---|---|
| name * | string | Net name |
| netClass | string | Net class name |
add_no_connectMark a pin as deliberately unconnected| Parameter | Type | Description |
|---|---|---|
| componentRef | string | Component reference to snap to (e.g. U1, R1). Use with pinNumber. |
| pinNumber | any | Pin number or name on componentRef (e.g. '1', 'GND'). Use with componentRef. |
| position | array | Position [x, y] in mm. Required when componentRef/pinNumber are not given. |
| schematicPath * | string | Path to the schematic file |
add_schematic_componentPlace symbols from any KiCad library| Parameter | Type | Description |
|---|---|---|
| angle | number | Rotation angle in degrees (KiCad CCW). 0=vertical resistor, 90=horizontal. Defaults to 0. |
| footprint | string | KiCAD footprint (e.g. Resistor_SMD:R_0603_1608Metric) |
| mirrorY | boolean | Mirror the symbol horizontally (flip left-right). Useful for transistors facing opposite direction. |
| position | object | Position on schematic |
| reference | string | Component reference (e.g., R1, U1). Required except for power symbols: for power:GND, … omit it or pass "#PWR?" to use the next free #PWRnn in the project (power:PWR_FLAG gets the next free #FLGnn). A non-power symbol placed without a reference is an error. |
| schematicPath * | string | Path to the schematic file |
| symbol * | string | Symbol library:name reference (e.g., Device:R, EDA-MCP:ESP32-C3) |
| unit | number | Unit number for multi-unit symbols (1=A, 2=B, 3=C, …). Defaults to 1. |
| value | string | Component value |
add_schematic_hierarchical_labelAdd a hierarchical label (sheet interface port) to a sub-sheet schematic. Hierarchical labels are the connection points that link a sub-sheet to its parent via sheet pins. The label text must exactly match the corresponding sheet pin name.| Parameter | Type | Description |
|---|---|---|
| orientation | number | Rotation in degrees: 0=label points right, 180=label points left (default: 0) |
| position * | any | Position in mm, as [x, y] or {x, y} |
| schematicPath * | string | Path to the sub-sheet .kicad_sch file |
| shape * | string | Signal direction from the sub-sheet's perspective |
| text * | string | Label text (e.g. 'SD_CLK') — must match the sheet pin name |
add_schematic_net_labelAdd net labels (VCC, GND, signals)| Parameter | Type | Description |
|---|---|---|
| componentRef | string | Component reference to snap label to (e.g. U1, R1). Use with pinNumber. |
| labelType | string | Label type (default: label) |
| netName * | string | Name of the net (e.g., VCC, GND, SIGNAL_1) |
| orientation | number | Rotation angle 0/90/180/270. Omit it when snapping to a pin: the label is then oriented along the pin's outward direction so the text runs away from the symbol body instead of over it. Defaults to 0 otherwise. |
| pinNumber | any | Pin number or name on componentRef to snap label to (e.g. '1', 'GND'). Use with componentRef. |
| position | any | Position for the label in mm, as [x, y] or {x, y}. Required when componentRef/pinNumber are not given. |
| schematicPath * | string | Path to the schematic file |
add_schematic_textAdd a free-form text annotation to the schematic. Use this to add notes, labels, section headings, or documentation strings directly on the schematic canvas. Unlike net labels, text annotations have no electrical significance.| Parameter | Type | Description |
|---|---|---|
| angle | number | Rotation angle in degrees (default: 0) |
| bold | boolean | Bold text (default: false) |
| fontSize | number | Font size in mm (default: 1.27) |
| italic | boolean | Italic text (default: false) |
| justify | string | Horizontal text justification (default: left) |
| position * | any | Position in schematic mm coordinates, as [x, y] or {x, y} |
| schematicPath * | string | Path to the .kicad_sch file |
| text * | string | Text content to display |
add_schematic_wireCreate wire between points| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
| snapToPins | boolean | Snap the first and last waypoints to the nearest pin (default: true) |
| snapTolerance | number | Maximum snap distance in mm (default: 1.0) |
| waypoints * | array | Ordered list of [x, y] coordinates. Minimum 2 points. |
add_sheet_pinAdd a pin to a sheet symbol block on the parent schematic. Sheet pins are the parent-side connection points that correspond to hierarchical labels in the sub-sheet. The pinName must exactly match a hierarchical_label in the sub-sheet.| Parameter | Type | Description |
|---|---|---|
| orientation | number | Pin orientation: 0=right edge of sheet box, 180=left edge (default: 0) |
| pinName * | string | Pin name — must match a hierarchical_label in the sub-sheet |
| pinType * | string | Signal direction (should match the sub-sheet hierarchical label shape) |
| position * | any | Pin position in mm, as [x, y] or {x, y} — must be on the sheet block boundary |
| schematicPath * | string | Path to the PARENT .kicad_sch file |
| sheetName * | string | Sheet name as it appears in the Sheetname property (e.g. 'Storage') |
add_symbol_propertyAdd or update a field on a library symbol| Parameter | Type | Description |
|---|---|---|
| hide | boolean | Hide the property. Omit to keep an existing property's visibility (new: false) |
| libraryPath * | string | Path to the .kicad_sym file |
| position | object | Position {x, y} in mm. Omit to leave an existing property where it is (new: 0, 0) |
| propertyName * | string | Property name (e.g. Manufacturer, MPN) |
| propertyValue * | string | Property value |
| symbolName * | string | Symbol name |
add_viaPlace vias for layer transitions| Parameter | Type | Description |
|---|---|---|
| net * | string | Net name |
| position | object | Via position |
| viaType | string | Via type. Only "through" (the default) is supported; other types are refused |
add_zoneAdd copper zone/pour with clearance settings| Parameter | Type | Description |
|---|---|---|
| clearance | number | Clearance value |
| layer * | string | Layer for the zone |
| minWidth | number | Minimum width |
| net * | string | Net name for the zone |
| padConnection | string | Pad connection type |
| points * | array | X coordinate |
| unit * | string | Unit of measurement |
align_componentsAlign multiple components| Parameter | Type | Description |
|---|---|---|
| alignmentType * | string | Type of alignment |
| referenceComponent | string | Reference component for alignment |
| references * | array | Array of component references to align |
| spacing | number | Spacing between components in mm |
annotate_schematicAuto-assign reference designators| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
assign_net_to_classAssign a net to an existing net class to apply its specific design rules.| Parameter | Type | Description |
|---|---|---|
| net * | string | Name of the net |
| netClass * | string | Name of the net class |
audit_via_netsCompare every via's net in the saved board with a reference board (a .kicad_pcb file or a git revision such as HEAD) and list vias whose net changed, plus vias added, removed or moved. KiCad can silently change a via's net on save (e.g. to a surrounding zone's net, or after an autorouter import), and DRC does not flag it because the board stays self-consistent. Run after saving, autorouting or importing a session.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Board file to audit; defaults to the loaded board's file on disk |
| reference * | string | Known-good version of the board: a .kicad_pcb path, or a git revision of the same file (HEAD, HEAD~1, a sha) |
autoplace_schematic_fieldsAutomatically reposition every component's Reference and Value field so they sit horizontally outside the component body AND outside any net labels attached to its pins, avoiding collisions with other components and already-placed fields (rotation-aware for 90°/270° symbols). Like KiCAD's built-in field auto-placement but net-label aware. Optionally limit to specific references.| Parameter | Type | Description |
|---|---|---|
| clearance | number | Gap in mm between the body/label extent and field text (default one 1.27mm grid unit) |
| references | array | Only reposition these references (default: all components) |
| schematicPath * | string | Path to the .kicad_sch file |
autorouteRun Freerouting autorouter (DSN export, route, SES import)| Parameter | Type | Description |
|---|---|---|
| attempts | number | Number of Freerouting runs to try (default: 1 — backward-compatible). When > 1, runs best-of-N: scores each attempt by routing completeness and keeps the SES with the highest score. Recommended: 3–5 for dense boards. |
| boardPath | string | Path to .kicad_pcb file (default: current board) |
| excludeNets | array | Leave these nets (names or globs) out of the routing job, e.g. high-current nets you will pour by hand. |
| freeroutingJar | string | Path to freerouting.jar (default: ~/.kicad-mcp/freerouting.jar or FREEROUTING_JAR env) |
| jobTimeout | number | Time in seconds Freerouting may spend routing before it stops by itself and writes what it has routed (--router.job_timeout). Default: `timeout` minus a tenth of it (at least 60 s, at most 120 s); no default budget with a `timeout` under 120 s, where it would cut off runs that finish in time. Needs Freerouting 2.4 or later: older versions stop at the budget but write no session file. The result has time_budget_reached: true when routing stopped this way; the board then holds a partial routing. 0 passes no time budget. |
| keepArtifacts | boolean | Keep the intermediate .dsn/.ses files next to the board after the run (default: false). Artifacts are staged in a temporary directory and removed on every exit — success, failure, or crash — unless this is set. |
| kicadRules | boolean | Pass the board's .kicad_dru (custom design rules: isolation, per-area clearances) and .kicad_pro (minimum track width) to Freerouting, which a DSN does not carry (default: true; a board without them is unaffected). Freerouting master after 2.5.0 applies them; 2.2 to 2.5.0 log them as unknown and 2.0/2.1 skip them silently, and both route with net-class clearances only. The reply's kicad_rules says which: applied, ignored (logged as unknown), unconfirmed (not mentioned in the log, so not used), and the rules Freerouting could only approximate (warnings, e.g. creepage applied as its clearance). false leaves them out. |
| layerTraceCosts | object | Per-layer trace cost factor, e.g. {"In1.Cu": 5}: the layer stays usable but a track there costs more (the factor along its preferred direction, twice that against it; Freerouting's defaults are about 1 and 2), so a plane layer carries only the tracks that fit nowhere else. Keys are canonical (In1.Cu) or the board's own layer names; a name the board lacks is refused. Combines with signalLayers; written to the same Freerouting rules file. |
| maxPasses | number | Maximum routing passes for single-attempt mode (default: 20). Ignored when `attempts` > 1; use `passSchedule` instead. |
| passSchedule | array | Per-attempt `--max-passes` values to cycle through (default: [50, 60, 65, 70, 75, 80, 85, 90, 55, 95]). The list wraps if `attempts` exceeds its length. |
| routeNets | array | Route only these nets (names or globs such as '/HV PWR/*'). Other nets stay on the board as obstacles but are left out of the routing job, so a board can be routed one isolation domain at a time. |
| routerSettings | object | Freerouting router settings for this run, by the names in Freerouting's docs/settings.md under `router`; each is passed as --router.<name>=<value>, a list joined with commas. Examples: {"autorouter.priority_net_classes": ["DIFF", "ANALOG"]} routes those net classes first and keeps other nets from ripping them; {"autorouter.plane_as_priority": true} gives each plane pad a via of its own into its plane (the plane's layer must be of type power); {"autorouter.ignore_net_classes": ["HV"]}. Which settings exist depends on the Freerouting version: priority_net_classes and plane_as_priority are on Freerouting master only (merged 2026-11-07), not in a v2 release. Freerouting skips a setting it does not know and keeps routing; the reply lists those in router_settings_rejected. Use maxPasses and jobTimeout for those two. With attempts above 1 the thread count (max_threads, autorouter.max_threads, optimizer.max_threads) is refused: best-of-N runs single-threaded so the attempts stay comparable. |
| signalLayers | array | Copper layers tracks may use, e.g. ["F.Cu", "In2.Cu", "B.Cu"] when In1 is a plane; canonical names or the board's own (a renamed F.Cu is found either way), and a name the board lacks is refused. The other copper layers get (active off) in a Freerouting rules file (autoroute_settings layer_rule, passed with -dr): no tracks there, vias still pass through, so a plane is not cut into islands. Nothing else is written to the file, so Freerouting's own per-layer defaults stay in force. The reply lists the restricted layers by the board's names in tracksKeptOffLayers. Default: all layers. |
| targetNets | array | Optional list of critical net names. An attempt that routes all of them earns a 50,000-point scoring bonus, breaking ties in favour of designs that include the must-have nets. |
| timeout | number | Per-attempt timeout in seconds (default: 300). Freerouting is killed when it is reached and nothing it routed is kept, so the router is given a shorter time budget of its own (see jobTimeout). |
backannotate_footprintsCopy footprint choices from the board back to the schematic| Parameter | Type | Description |
|---|---|---|
| addMissing | boolean | Add a Footprint field to instances that have none (default true) |
| boardPath * | string | Absolute path to the .kicad_pcb board file |
| dryRun | boolean | Report the changes without writing them |
| references | array | Limit the update to these reference designators |
| schematicPath | string | Single sheet to update. Omit to walk the sheet tree from the root schematic named after the board, which is what a hierarchical design needs; local history, backup copies and other projects under the same directory are left alone. |
batch_add_and_connectPlace multiple components AND wire their nets in a single call — the fewest-round-trip way to build a subcircuit. Each component is like batch_add_components plus an optional 'nets' map {pin: netName}. Components are placed first, then nets are connected via batch_connect. labelType selects 'label' (sheet-local, default) or 'global_label' (cross-sheet by name) for all the nets wired in this call. Labels can land on Reference/Value text placed earlier; run autoplace_schematic_fields afterwards to move that text clear (connectivity is not touched).| Parameter | Type | Description |
|---|---|---|
| components | array | Reference designator. Optional only for power symbols, which get the next free #PWRnn (PWR_FLAG: #FLGnn); their nets follow the number chosen. |
| labelType | string | Label kind used to wire the nets: 'label' = sheet-local (default); 'global_label' = cross-sheet by name |
| origin_x | number | |
| origin_y | number | |
| schematicPath * | string | Path to the .kicad_sch file |
| stubLength | number | Wire stub (mm) between each pin and its label, as in batch_connect (default 0) |
batch_add_componentsAdd 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?, unit?}. Multi-unit parts are placed one entry per unit, sharing a reference. 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.| Parameter | Type | Description |
|---|---|---|
| auto_position_fields | boolean | Auto-place Ref/Value fields outside the body (default true) |
| components | array | 'Library:SymbolName' (e.g., Device:R) |
| origin_x | number | X offset added to every component position (mm) |
| origin_y | number | Y offset added to every component position (mm) |
| schematicPath * | string | Path to the .kicad_sch file |
batch_add_no_connectsAdd no-connect (X) flags to multiple pins in one call, to mark intentionally unconnected pins and silence ERC. 'pins' is a list of {componentRef, pinName}.| Parameter | Type | Description |
|---|---|---|
| pins * | array | Pins to mark no-connect |
| schematicPath * | string | Path to the .kicad_sch file |
batch_connectPlace net labels on multiple pins in one call to wire nets quickly. 'connections' is a map {reference: {pin: netName}} where pin is a number or name. labelType selects 'label' (sheet-local, the default) or 'global_label' (connects across all sheets by name — use this for power rails and any net that spans sheets). For local labels, if a facing label for the same net is nearby a wire is drawn instead of a duplicate label; global labels are placed one-per-pin since they join their net by name. Set replace=true to clear any existing label at a pin first. Warns about power nets that have no PWR_FLAG, saying what a flag does and that one belongs only where the rail is supplied from off the sheet (a connector or a battery). Labels can land on Reference/Value text placed earlier; run autoplace_schematic_fields afterwards to move that text clear (connectivity is not touched).| Parameter | Type | Description |
|---|---|---|
| connections * | object | Map of reference -> {pin: netName} |
| labelType | string | Label kind: 'label' = sheet-local (default); 'global_label' = connects across all sheets by name |
| replace | boolean | Delete existing labels at each pin before placing (default false) |
| schematicPath * | string | Path to the .kicad_sch file |
| stubLength | number | Draw a wire this long (mm) out of each pin and put the label at its end, so the label doesn't sit on the pin number and name. 2.54 is typical; default 0 (label on the pin). |
batch_edit_schematic_componentsEdit multiple existing components in one call. 'components' is a map {reference: {value?, footprint?, newReference?, ...}}; each entry is applied via the single-component editor. Returns per-reference updated/errors.| Parameter | Type | Description |
|---|---|---|
| components * | object | Map of reference -> fields to change |
| schematicPath * | string | Path to the .kicad_sch file |
batch_list_symbol_pinsReturn pin names, numbers, types, and symbol-local coordinates for multiple symbols in a single call. Use instead of calling list_symbol_pins repeatedly when placing a subcircuit — saves 5–10 round-trips. Each result includes pins (with x/y/angle in symbol-local coords, Y-up per KiCAD lib convention) and body_bbox (bounding box of pin envelope ±1.27mm, symbol-local coords). IMPORTANT: coordinates are symbol-local (Y-up, pre-rotation); after placement use get_schematic_pin_locations for post-rotation schematic coordinates. Set compact=true for simple 2-pin passives (Device:R/C/L) to get just pin_count, body_bbox, and is_symmetric.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | If true, omit per-pin detail for standard 2-pin symmetric passives. |
| schematicPath | string | Path to .kicad_sch — enables project-local sym-lib-table lookup |
| symbols * | array | Array of symbols in 'Library:SymbolName' format (e.g., ['Device:R', 'Device:C']) |
batch_move_componentsMove many components in one transactional call| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Validate the batch without changing the board |
| moves | object | Map of reference designator to placement spec |
| save | boolean | Save the board after all moves succeed (default true) |
batch_set_schematic_property_positionsMove many Reference/Value field labels in a single file read/write — far faster than repeated set_schematic_property_position calls. Pass an 'updates' array; each item is {reference, property:'Reference'|'Value', x, y, angle?, visible?}. Each optional 'angle' is sheet-absolute as drawn (0 = horizontal, 90 = vertical) and converted to the symbol's local frame; omitting 'angle' preserves the existing field angle. Returns per-item applied (with stored_angle, drawn_angle, effective_justify) and failed lists.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
| updates | array | Desired sheet-absolute text angle in degrees (0 = horizontal, 90 = vertical); omit to preserve existing angle |
check_clearanceCheck the actual clearance between two PCB items (track, via, pad, zone or component) and report whether it meets the design rules.| Parameter | Type | Description |
|---|---|---|
| item1 | object | Type of the first item |
| item2 | object | Type of the second item |
check_courtyard_overlapsDetect courtyard overlaps between footprints and (optionally) flag courtyards that extend past the board outline. Accepts a `positions` dict of hypothetical placements so an AI can validate a proposed move_component / place_component before committing it. Returns overlap pairs with intersection extents (mm) and per-component boundary violations.| Parameter | Type | Description |
|---|---|---|
| board_outline | object | Optional board outline bbox override. Default: derived from Edge.Cuts. |
| include_boundary | boolean | Also flag courtyards that extend past the board outline (default true). |
| margin | number | Extra clearance in mm added around every courtyard (default 0). Useful to enforce a manufacturing keepout wider than the symbol's declared courtyard. |
| positions | object | Virtual placements: map of reference designator to [x, y] or [x, y, rotation_degrees] in mm. Each listed ref is checked AS IF it were at the given coordinates. Unspecified refs use their current board position. |
| refs | array | Limit the check to these refs (default: every footprint on the board). |
check_freeroutingVerify Java and Freerouting availability| Parameter | Type | Description |
|---|---|---|
| freeroutingJar | string | Path to freerouting.jar to check |
check_kicad_uiCheck if KiCAD is runningcheck_placement_clearanceClassify placement conflicts as body overlap, courtyard overlap, keepout violation, silk/text overlap or pad clearance.| Parameter | Type | Description |
|---|---|---|
| margin | number | Extra bbox margin in mm for mechanical checks |
| padClearance | number | Extra pad bbox clearance in mm |
| refs | array | Optional component reference filter |
check_schematic_legibilityChecks whether a person can read a schematic sheet: what ERC and a netlist cannot see. Boxes every symbol body, visible reference/value, label and free text and reports text over text (a symbol's own fields included), text over another symbol's body, a symbol's own field across a drawn line of its body (inside an IC's rectangle or beside a capacitor's plates is fine), body over body, a wire through a text (a label's own wire only touches its edge), items on the title block or outside the frame, and a field stored upside down. Each problem comes with its box in sheet mm; look at it with get_schematic_view_region.| Parameter | Type | Description |
|---|---|---|
| maxProblems | number | Most problems to list (default 200); counts always cover all |
| schematicPath * | string | Path to the .kicad_sch sheet to check (one sheet) |
clear_board_outlineDelete all Edge.Cuts graphics from the current PCB board.close_projectSave (optionally) and drop in-memory state| Parameter | Type | Description |
|---|---|---|
| force | boolean | Backward-compatible alias for forceExternalChanges |
| forceExternalChanges | boolean | Save despite external changes to the loaded SWIG board file |
| save | boolean | Save the board to disk before closing (default true). If false and there are unsaved changes, the close proceeds but the response warns they were discarded. |
close_toolboxClose one or more toolboxes to remove their tools from your tool list and free context. The core tools stay.| Parameter | Type | Description |
|---|---|---|
| toolboxes * | array | Toolbox names to close |
connect_passthroughWire all matching pins between connectors (FFC/ribbon)| Parameter | Type | Description |
|---|---|---|
| netPrefix | string | Net name prefix, e.g. 'CSI' → CSI_1, CSI_2 (default: PIN) |
| pinOffset | number | Add to pin number when building net name (default: 0) |
| schematicPath * | string | Path to the schematic file |
| sourceRef * | string | Source connector reference (e.g. J1) |
| targetRef * | string | Target connector reference (e.g. J2) |
connect_to_netConnect pin to named net| Parameter | Type | Description |
|---|---|---|
| componentRef * | string | Component reference (e.g., U1, R1) |
| netName * | string | Name of the net to connect to |
| pinName * | string | Pin name/number to connect |
| schematicPath * | string | Path to the schematic file |
copy_routing_patternReplicate routing between component groups| Parameter | Type | Description |
|---|---|---|
| includeVias | boolean | Also copy vias (default: true) |
| sourceRefs * | array | References of the source components (e.g. ['U1', 'R1', 'C1']) |
| targetRefs * | array | References of the target components in same order as sourceRefs (e.g. ['U2', 'R2', 'C2']) |
| traceWidth | number | Override trace width in mm (default: keep original width) |
create_board_from_schematicCreate a board populated from the schematic| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Destination .kicad_pcb path; defaults next to schematic |
| overwrite | boolean | Replace boardPath if it already exists |
| schematicPath * | string | Absolute path to the .kicad_sch schematic file |
create_footprintCreate a new KiCAD footprint (.kicad_mod) inside a .pretty library directory. Supports SMD and THT pads, courtyard, silkscreen, and fab-layer rectangles.| Parameter | Type | Description |
|---|---|---|
| description | string | Human-readable description |
| libraryPath * | string | Path to the .pretty library directory (created if missing). E.g. C:/MyProject/MyLib.pretty |
| name * | string | Footprint name, e.g. 'R_0603_Custom' |
| overwrite | boolean | Replace existing footprint file (default: false) |
| pads | array | List of pads to add (can be empty for outlines-only footprints) |
| refPosition | object | Position of the REF** text (default: 0, -1.27) |
| tags | string | Space-separated tag string, e.g. 'resistor SMD 0603' |
| valuePosition | object | Position of the Value text (default: 0, 1.27) |
create_hierarchical_subsheetCreate a new sub-sheet .kicad_sch file and link it into a parent schematic in a single call (create_schematic + add_hierarchical_sheet). The fastest way to grow a hierarchical design.| Parameter | Type | Description |
|---|---|---|
| metadata | object | Optional metadata for the new sub-sheet (title, etc.) |
| parentSchematicPath * | string | Path to the parent .kicad_sch |
| position | object | |
| sheetName | string | Display name for the sheet |
| size | object | |
| subsheetPath * | string | Path for the new sub-sheet .kicad_sch to create |
create_netclassDefine net class with rules| Parameter | Type | Description |
|---|---|---|
| clearance | number | Clearance in mm |
| diffPairGap | number | Differential pair gap in mm |
| diffPairWidth | number | Differential pair trace width in mm |
| name * | string | Net class name |
| nets | array | Net names to assign to this class immediately |
| traceWidth | number | Default trace width in mm |
| uviaDiameter | number | Micro via diameter in mm |
| uviaDrill | number | Micro via drill size in mm |
| viaDiameter | number | Via diameter in mm |
| viaDrill | number | Via drill size in mm |
create_projectInitialize new KiCAD projects| Parameter | Type | Description |
|---|---|---|
| name * | string | Project name |
| paper | string | Schematic paper size (default A4): A5-A0, A-E, USLetter, USLegal, USLedger |
| path * | string | Project directory path |
| portrait | boolean | Portrait schematic sheet (default: landscape) |
create_schematicCreate new schematic file| Parameter | Type | Description |
|---|---|---|
| name * | string | Schematic name |
| paper | string | Paper size (default A4): A5-A0, A-E, USLetter, USLegal, USLedger |
| path | string | Optional path |
| portrait | boolean | Portrait orientation (default: landscape) |
create_symbolCreate a new schematic symbol in a .kicad_sym library file (created if missing). After creation, use register_symbol_library so KiCAD finds it. Pin positions are where the wire connects; the symbol body is drawn between them.
Coordinate tips:
- Body rectangle typically spans ±2.54 to ±5.08 mm
- Pins on left side: at.x = body_left - length, angle=0 (wire goes right)
- Pins on right side: at.x = body_right + length, angle=180 (wire goes left)
- Pins on top: at.y = body_top + length, angle=270 (wire goes down)
- Pins on bottom: at.y = body_bottom - length, angle=90 (wire goes up)
- Standard pin length: 2.54 mm, standard grid: 2.54 mm| Parameter | Type | Description |
|---|---|---|
| datasheet | string | Datasheet URL or '~' |
| description | string | Human-readable description |
| footprint | string | Default footprint, e.g. 'Package_SO:SOIC-8_3.9x4.9mm_P1.27mm' |
| inBom | boolean | Include in BOM (default true) |
| keywords | string | Space-separated search keywords |
| libraryPath * | string | Path to the .kicad_sym file (created if missing) |
| name * | string | Symbol name, e.g. 'TMC2209', 'MyOpAmp' |
| onBoard | boolean | Include in netlist for PCB (default true) |
| overwrite | boolean | Replace existing symbol with same name (default false) |
| pins | array | List of pins (can be empty for graphical-only symbols) |
| polylines | array | Polyline graphics for custom body shapes (op-amp triangles, etc.) |
| rectangles | array | Body rectangle(s). Typically one rectangle defining the IC body. |
| referencePrefix | string | Schematic reference prefix: 'U' (IC), 'R' (resistor), 'J' (connector), etc. Default: 'U' |
create_variantRegister a named assembly variant in a KiCad project.| Parameter | Type | Description |
|---|---|---|
| description | string | |
| name * | string |
delete_componentRemove component from board| Parameter | Type | Description |
|---|---|---|
| reference * | string | Reference designator of the component to delete (e.g., 'R5') |
delete_graphicDelete a PCB graphic/drawing item by UUID.| Parameter | Type | Description |
|---|---|---|
| uuid * | string | KiCad UUID of the graphic item |
delete_schematic_componentRemove component| Parameter | Type | Description |
|---|---|---|
| deleteAttachedLabels | boolean | Also delete net labels sitting on the deleted component's pin positions, unless still attached to a wire or another component's pin (default false) |
| reference * | string | Reference designator of the component to remove (e.g. R1, U3) |
| schematicPath * | string | Path to the .kicad_sch file |
| unit | number | Unit of a multi-unit part (1=A, 2=B, …) to remove. Every unit shares one reference, so without this ALL units of the part are deleted. |
delete_schematic_net_labelRemove net label| Parameter | Type | Description |
|---|---|---|
| netName * | string | Name of the net label to remove |
| position | any | Position in mm, as [x, y] or {x, y}, to disambiguate if multiple labels share the name |
| schematicPath * | string | Path to the .kicad_sch file |
delete_schematic_wireRemove wire segment| Parameter | Type | Description |
|---|---|---|
| end * | object | Wire end position |
| schematicPath * | string | Path to the .kicad_sch file |
| start * | object | Wire start position |
delete_symbolRemove symbol from library| Parameter | Type | Description |
|---|---|---|
| libraryPath * | string | Path to the .kicad_sym file |
| name * | string | Symbol name to delete |
delete_traceRemove traces (by UUID, position, or net)| Parameter | Type | Description |
|---|---|---|
| includeVias | boolean | Include vias in net-based deletion |
| layer | string | Filter by layer when using net-based deletion |
| net | string | Delete all traces on this net (bulk delete) |
| position | object | Delete trace nearest to this position |
| traceUuid | string | UUID of a specific trace to delete |
digikey_check_library_availabilityLook up every symbol in a .kicad_sym on Digi-Key and report which parts are obsolete, out of stock, unfindable, or missing a part number altogether — the check to run before a board goes to purchasing, and after inheriting a library from an import. Each symbol is searched by its distributor part number first and its manufacturer part number second, because retired Digi-Key numbers are the common failure and the MPN usually still resolves; searchByMpnFirst reverses that. Part numbers are read under any of the property spellings real libraries use (MPN, MP, 'MANUFACTURER PART NUMBER', 'PART NUMBER', 'SUPPLIER PART NUMBER 1'). Budget up to two rate-limited requests per symbol — the fallback costs a second one whenever the first term misses — plus one token request, so raise maxSymbols deliberately.| Parameter | Type | Description |
|---|---|---|
| libraryPath * | string | Absolute path to the .kicad_sym library file |
| maxSymbols | number | Stop after this many symbols (default 25). Each symbol costs one or two rate-limited API requests and the client throttles itself between them, so a larger sweep takes minutes; raising this past a few hundred will exhaust even the extended timeout this tool runs under. |
| preferPackaging | string | Packaging to quote |
| searchByMpnFirst | boolean | Search by manufacturer part number before the distributor number |
| symbols | array | Only check these symbol names (default: every symbol in the library) |
digikey_search_partsSearch Digi-Key by part number, manufacturer part number, or a parametric phrase ('0402 100nF 50V X7R'), returning stock, price, lifecycle status, packaging variations and the parametric table. Two details the raw API makes easy to get wrong are handled here: the Digi-Key part number lives on each packaging variation rather than on the product, so reel and cut tape have different numbers; and lifecycle is read from ProductStatus.Id rather than the status string, which is localized. Use preferPackaging to pick which variation is quoted as the headline part number.| Parameter | Type | Description |
|---|---|---|
| keywords * | string | Part number, MPN, or a parametric phrase such as '0402 100nF 50V X7R' |
| limit | number | Results to return, 1-50 (default 10) |
| offset | number | Result offset for paging (default 0) |
| preferPackaging | string | Which packaging variation to quote as the headline part number: TR (tape & reel, production), CT (cut tape, prototypes), DKR (Digi-Reel). Matching handles localized packaging names. |
digikey_test_connectionVerify that the server's Digi-Key credentials work: fetch a token and run one search. Use this first when a Digi-Key tool reports an authentication problem, since it distinguishes missing credentials from rejected ones from a locale misconfiguration. Credentials come from DIGIKEY_CLIENT_ID and DIGIKEY_CLIENT_SECRET in the server environment; they are never accepted as arguments and never appear in a response.discard_or_reloadDiscard the current in-memory PCB state and reload the board from disk.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Optional .kicad_pcb path; defaults to current board |
download_jlcpcb_databaseDownload 2.5M+ parts catalog (one-time setup)| Parameter | Type | Description |
|---|---|---|
| force | boolean | Force re-download even if database exists |
| source | string | Force one source. "cdfer" (default) = in-stock subset, no 7z needed. "yaqwsx" = FULL catalog, ~2.9M parts (needs a 7z CLI). "official" = JLCPCB API (needs creds). |
download_registry_partDownload its footprint, symbol or 3D model| Parameter | Type | Description |
|---|---|---|
| dest_dir * | string | Existing destination directory to write the file into (must already exist) |
| format * | string | Which file to download: footprint | symbol | 3D model |
| id * | string | Registry part id (from search_parts_registry) |
duplicate_componentCopy existing component| Parameter | Type | Description |
|---|---|---|
| count | number | Number of duplicates (default: 1) |
| newReference | string | New reference designator |
| offset | object | Offset from original position |
| reference * | string | Reference of component to duplicate |
edit_componentModify component properties| Parameter | Type | Description |
|---|---|---|
| footprint | string | Optional new footprint |
| newReference | string | Optional new reference designator |
| reference * | string | Reference designator of the component (e.g., 'R5') |
| value | string | Optional new component value |
edit_footprint_padModify pad properties| Parameter | Type | Description |
|---|---|---|
| drill | any | Round drill diameter in mm |
| footprintPath * | string | Full path to the .kicad_mod file, e.g. C:/MyLib.pretty/R_Custom.kicad_mod |
| padNumber * | any | Pad number to edit, e.g. '1' or 2 |
| shape | string | New pad shape |
edit_schematic_componentEdit footprint, value, reference, label positions, and arbitrary custom properties (MPN, Manufacturer, DigiKey_PN, LCSC, Voltage, Tolerance, Dielectric, …) in one batched call| Parameter | Type | Description |
|---|---|---|
| fieldPositions | object | Text justification: "left", "right", "center", "top", "bottom", or combined "left top" / "right bottom". Array form ["left", "top"] is also accepted. Omit to leave the existing justify unchanged. Pass "center" to reset to the KiCad default (removes the justify directive). |
| footprint | string | New KiCAD footprint string (e.g. Resistor_SMD:R_0603_1608Metric) |
| newReference | string | Rename the reference designator (e.g. R1 → R10) |
| properties | object | Property value to write |
| reference * | string | Current reference designator of the component (e.g. R1, U3) |
| removeProperties | array | List of custom property names to delete from this component. The built-in fields Reference, Value, Footprint, and Datasheet cannot be removed (clear them by setting value to "" instead). Example: ["OldMPN", "Distributor_PN"] |
| schematicPath * | string | Path to the .kicad_sch file |
| value | string | New value string (e.g. 10k, 100nF) |
enrich_datasheetsAuto-populate datasheet URLs using LCSC part numbers| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | If true, show what would be changed without writing to disk (default: false) |
| schematic_path * | string | Path to the .kicad_sch file to enrich |
estimate_airwire_lengthsAlias for get_ratsnest: estimate airwire segments and lengths by net.| Parameter | Type | Description |
|---|---|---|
| maxPadsPerNet | number | |
| nets | array |
export_3d3D models (STEP, STL, VRML, OBJ)| Parameter | Type | Description |
|---|---|---|
| format * | string | 3D model format |
| includeComponents | boolean | Whether to include 3D component models |
| includeCopper | boolean | Whether to include copper layers |
| includeSilkscreen | boolean | Whether to include silkscreen |
| includeSolderMask | boolean | Whether to include solder mask |
| outputPath * | string | Path to save the 3D model file |
export_3d_cliExport a 3D model of the PCB via kicad-cli. The `format` param selects the subcommand (step, glb, stl, ply, brep, xao, vrml); only flags valid for that subcommand are forwarded. STEP/glb/stl/ply/brep/xao share the geometry/include flag set (no-board-body, include-tracks/pads/zones/inner-copper/silkscreen/soldermask, fuse-shapes, fill-all-vias, component/net filters, min-distance, etc.; no-optimize-step is STEP-only); vrml uses units + models-dir/models-relative instead. Rich CLI sibling of export_3d and export_vrml. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardOnly | boolean | Only generate a board with no components |
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| componentFilter | string | Only include component models matching this refdes list (comma, wildcards) |
| cutViasInBody | boolean | Cut via holes in board body even if conductor layers not exported |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drillOrigin | boolean | Use Drill Origin for output origin |
| fillAllVias | boolean | Don't cut via holes in conductor layers |
| force | boolean | Overwrite output file |
| format * | string | 3D output format (selects the kicad-cli subcommand) |
| fuseShapes | boolean | Fuse overlapping geometry together |
| gridOrigin | boolean | Use Grid Origin for output origin |
| includeInnerCopper | boolean | Export elements on inner copper layers |
| includePads | boolean | Export pads |
| includeSilkscreen | boolean | Export silkscreen graphics as flat faces |
| includeSoldermask | boolean | Export soldermask layers as flat faces |
| includeTracks | boolean | Export tracks and vias |
| includeZones | boolean | Export zones |
| minDistance | string | Min distance between points to treat as separate (default '0.01mm') |
| modelsDir | string | Folder to store 3D models in (VRML only; empty = embed in main file) |
| modelsRelative | boolean | Use relative model paths with modelsDir (VRML only) |
| netFilter | string | Only include copper items belonging to nets matching this wildcard |
| noBoardBody | boolean | Exclude board body |
| noComponents | boolean | Exclude 3D models for components |
| noDnp | boolean | Exclude 3D models for components with 'Do not populate' attribute |
| noOptimizeStep | boolean | Do not optimize STEP file (enables writing parametric curves; STEP only) |
| noUnspecified | boolean | Exclude 3D models for components with 'Unspecified' footprint type |
| outputPath * | string | Output 3D model file path |
| substModels | boolean | Substitute STEP/IGS models in place of VRML models |
| units | string | Output units (VRML only; default in) |
| userOrigin | string | User-specified output origin e.g. '1x1in', '25.4x25.4mm' (default unit mm) |
export_bomExport a Bill of Materials (BOM) from the PCB in CSV, XML, HTML or JSON format.| Parameter | Type | Description |
|---|---|---|
| format * | string | BOM file format |
| groupByValue | boolean | Whether to group components by value |
| includeAttributes | array | Optional array of additional attributes to include |
| outputPath * | string | Path to save the BOM file |
export_drillDrill files| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| drillOrigin | string | Drill coordinate origin (default absolute) |
| excellonMinHeader | boolean | Use a minimal Excellon header |
| excellonMirrorY | boolean | Mirror the Y axis (Excellon) |
| excellonOvalFormat | string | Excellon oval hole format (default alternate) |
| excellonSeparateTh | boolean | Generate independent files for NPTH and PTH holes |
| excellonUnits | string | Excellon output units (default mm) |
| excellonZerosFormat | string | Excellon zero-suppression format (default decimal) |
| format | string | Drill file format (default excellon) |
| generateMap | boolean | Generate a drill map / summary file |
| gerberPrecision | number | Gerber coordinate precision (5 or 6) when format=gerber |
| mapFormat | string | Drill map format when generateMap is set (default pdf) |
| outputDir * | string | Output directory for the drill files |
export_dsnExport the current PCB to Specctra DSN format. Useful for manual Freerouting workflow or external autorouters.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to .kicad_pcb file (default: current board) |
| outputPath | string | Output DSN file path (default: same dir as board) |
export_gencadExport the PCB in GenCAD format via kicad-cli. Assembly/test interchange format. Exposes padstack flip, unique pin/footprint shape generation, drill-file origin, and store-origin-coordinate options. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| flipBottomPads | boolean | Flip bottom footprint padstacks |
| outputPath * | string | Output .cad file path |
| storeOriginCoord | boolean | Save the origin coordinates in the file |
| uniqueFootprints | boolean | Generate a new shape for each footprint instance (do not reuse shapes) |
| uniquePins | boolean | Generate unique pin names |
| useDrillOrigin | boolean | Use drill/place file origin as origin |
export_gerberExport PCB Gerber manufacturing files to a directory. Optionally include drill files, map files and choose layer subset.| Parameter | Type | Description |
|---|---|---|
| generateDrillFiles | boolean | Whether to generate drill files |
| generateMapFile | boolean | Whether to generate a map file |
| layers | array | Optional array of layer names to export (default: all) |
| outputDir * | string | Directory to save Gerber files |
| useAuxOrigin | boolean | Whether to use auxiliary axis as origin |
| useProtelExtensions | boolean | Whether to use Protel filename extensions |
export_gerber_singlePlot the given layers to a SINGLE Gerber file via kicad-cli (`pcb export gerber`). Singular sibling of export_gerbers. Exposes the full single-file Plot option set (X2, netlist attributes, DNP fab-layer modes, soldermask subtraction, aperture macros, drill-file origin, precision, Protel extension). Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| commonLayers | array | Layers to include on every plot (e.g. ['Edge.Cuts']) |
| crossoutDnpFootprintsOnFabLayers | boolean | Plot an 'X' over DNP footprint courtyards and strike out their refdes |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| disableApertureMacros | boolean | Disable aperture macros |
| drawingSheet | string | Path to a drawing sheet override |
| excludeRefdes | boolean | Exclude reference designator text |
| excludeValue | boolean | Exclude value text |
| hideDnpFootprintsOnFabLayers | boolean | Don't plot DNP footprint text/graphics on fab layers |
| includeBorderTitle | boolean | Include the border and title block |
| layers | array | Layers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts'] |
| noNetlist | boolean | Do not generate netlist attributes |
| noProtelExt | boolean | Use KiCad Gerber file extensions instead of Protel |
| noX2 | boolean | Do not use the extended X2 Gerber format |
| outputPath * | string | Output Gerber file path |
| precision | number | Gerber coordinate precision: 5 or 6 (default 6) |
| sketchDnpFootprintsOnFabLayers | boolean | Plot DNP footprints in sketch mode on fab layers |
| sketchPadsOnFabLayers | boolean | Draw pad outlines and numbers on fab layers |
| subtractSoldermask | boolean | Subtract soldermask from silkscreen |
| useDrillFileOrigin | boolean | Use the drill/place file origin |
export_gerbersPlot Gerber files for a PCB via kicad-cli, exposing the full Plot-dialog option set (X2, netlist attributes, DNP handling, soldermask subtraction, precision, drill-file origin, stored board plot settings, etc). Reads the board from disk, so it reflects the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| boardPlotParams | boolean | Use the Gerber plot settings already stored in the board file |
| commonLayers | array | Layers to include on every plot (e.g. ['Edge.Cuts']) |
| crossoutDnpFootprintsOnFabLayers | boolean | Plot an 'X' over DNP footprint courtyards and strike out their refdes |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| disableApertureMacros | boolean | Disable aperture macros |
| drawingSheet | string | Path to a drawing sheet override |
| excludeRefdes | boolean | Exclude reference designator text |
| excludeValue | boolean | Exclude value text |
| hideDnpFootprintsOnFabLayers | boolean | Don't plot DNP footprint text/graphics on fab layers |
| includeBorderTitle | boolean | Include border and title block |
| layers | array | Layers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts'] |
| noNetlist | boolean | Do not generate netlist attributes |
| noProtelExt | boolean | Use KiCad Gerber file extensions instead of Protel |
| noX2 | boolean | Do not use the extended X2 Gerber format |
| outputDir * | string | Output directory for the Gerber files |
| precision | number | Gerber coordinate precision: 5 or 6 (default 6) |
| sketchDnpFootprintsOnFabLayers | boolean | Plot DNP footprints in sketch mode on fab layers |
| sketchPadsOnFabLayers | boolean | Draw pad outlines and numbers on fab layers |
| subtractSoldermask | boolean | Subtract soldermask from silkscreen |
| useDrillFileOrigin | boolean | Use the drill/place file origin |
export_ipc2581Export the PCB in IPC-2581 format via kicad-cli. Single-file MES/CAD interchange carrying placement, nets and BOM part data inline. The bomCol* params map schematic fields to the embedded BOM columns (e.g. internal P/N, manufacturer P/N) — useful for assembly/MES imports. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| bomColDist | string | Value to insert into the BOM Distributor column |
| bomColDistPn | string | Schematic field to use for the BOM Distributor Part Number column |
| bomColIntId | string | Schematic field to use for the BOM Internal Id column |
| bomColMfg | string | Schematic field to use for the BOM Manufacturer column |
| bomColMfgPn | string | Schematic field to use for the BOM Manufacturer Part Number column |
| compress | boolean | Compress the output |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| outputPath * | string | Output .xml file path |
| precision | number | Coordinate precision (default 6) |
| units | string | Units (default mm) |
| version | string | IPC-2581 standard version (default 'C') |
export_ipcd356Generate an IPC-D-356 bare-board electrical-test netlist via kicad-cli. Consumed by flying-probe and bed-of-nails testers. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| outputPath * | string | Output .ipc / netlist file path |
export_netlistNetlist (KiCad, Spice, Cadstar, OrcadPCB2)| Parameter | Type | Description |
|---|---|---|
| format | string | Netlist format (default: KiCad) |
| outputPath * | string | Absolute path for the output file (e.g. /tmp/design.spice) |
| schematicPath * | string | Absolute path to the .kicad_sch schematic file |
export_odbExport the PCB in ODB++ format via kicad-cli. Single job archive (copper, drill, placement, components, nets, outline) widely used by CAM/MES/assembly. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| compression | string | Output container/compression mode (default zip) |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| outputPath * | string | Output file path (archive or directory per compression) |
| precision | number | Coordinate precision (default 2) |
| units | string | Units (default mm) |
export_pcb_dxfPlot the PCB layout to DXF via kicad-cli, exposing the full layer-plot option set (layer + common-layer lists, refdes/value exclusion, soldermask subtraction, use-contours, use-drill-origin, border+title, output units, DNP fab-layer modes, drill shape, single/multi output modes). Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| commonLayers | array | Layers to include on every plot (e.g. ['Edge.Cuts']) |
| crossoutDnpFootprintsOnFabLayers | boolean | Plot an 'X' over DNP footprint courtyards and strike out their refdes |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| drillShapeOpt | number | Pad/via drill shape option (0 none, 1 small, 2 actual; default 2) |
| excludeRefdes | boolean | Exclude reference designator text |
| excludeValue | boolean | Exclude value text |
| hideDnpFootprintsOnFabLayers | boolean | Don't plot DNP footprint text/graphics on fab layers |
| includeBorderTitle | boolean | Include the border and title block |
| layers | array | Layers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts'] |
| modeMulti | boolean | Multi output; output path is a directory (GUI-like plotting) |
| modeSingle | boolean | Single file; output path is full path; LAYER_LIST controls all layers |
| outputPath * | string | Output DXF file path (or directory in multi mode) |
| outputUnits | string | Output units (default in) |
| sketchDnpFootprintsOnFabLayers | boolean | Plot DNP footprints in sketch mode on fab layers |
| sketchPadsOnFabLayers | boolean | Draw pad outlines and numbers on fab layers |
| subtractSoldermask | boolean | Subtract soldermask from silkscreen |
| useContours | boolean | Plot graphic items using their contours |
| useDrillOrigin | boolean | Plot using the drill/place file origin |
export_pcb_pdfPlot the PCB layout to PDF via kicad-cli, exposing the full layer-plot option set (layer + common-layer lists, mirror, refdes/value exclusion, border+title, soldermask subtraction, DNP fab-layer modes, negative, black-and-white, theme, drill shape, and single/separate/multipage output modes). Rich CLI sibling of export_pdf. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Black and white only |
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| commonLayers | array | Layers to include on every plot (e.g. ['Edge.Cuts']) |
| crossoutDnpFootprintsOnFabLayers | boolean | Plot an 'X' over DNP footprint courtyards and strike out their refdes |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| drillShapeOpt | number | Pad/via drill shape option (0 none, 1 small, 2 actual; default 2) |
| excludeRefdes | boolean | Exclude reference designator text |
| excludeValue | boolean | Exclude value text |
| hideDnpFootprintsOnFabLayers | boolean | Don't plot DNP footprint text/graphics on fab layers |
| includeBorderTitle | boolean | Include the border and title block |
| layers | array | Layers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts'] |
| mirror | boolean | Mirror the board (to show bottom layers) |
| modeMultipage | boolean | Plot the layers to a single multi-page PDF |
| modeSeparate | boolean | Plot the layers to individual PDF files |
| modeSingle | boolean | Single file; output path is full path; LAYER_LIST controls all layers |
| negative | boolean | Plot as negative |
| outputPath * | string | Output PDF file path (or directory in separate mode) |
| sketchDnpFootprintsOnFabLayers | boolean | Plot DNP footprints in sketch mode on fab layers |
| sketchPadsOnFabLayers | boolean | Draw pad outlines and numbers on fab layers |
| subtractSoldermask | boolean | Subtract soldermask from silkscreen |
| theme | string | Color theme to use (default: PCB editor settings) |
export_pcb_svgPlot the PCB layout to SVG via kicad-cli, exposing the full layer-plot option set (layer + common-layer lists, mirror, soldermask subtraction, negative, black-and-white, theme, DNP fab-layer modes, page-size mode, fit-page-to-board, exclude-drawing-sheet, drill shape, single/multi output modes). Rich CLI sibling of export_svg. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Black and white only |
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| commonLayers | array | Layers to include on every plot (e.g. ['Edge.Cuts']) |
| crossoutDnpFootprintsOnFabLayers | boolean | Plot an 'X' over DNP footprint courtyards and strike out their refdes |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| drillShapeOpt | number | Pad/via drill shape option (0 none, 1 small, 2 actual; default 2) |
| excludeDrawingSheet | boolean | No drawing sheet |
| fitPageToBoard | boolean | Fit the page to the board |
| hideDnpFootprintsOnFabLayers | boolean | Don't plot DNP footprint text/graphics on fab layers |
| layers | array | Layers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts'] |
| mirror | boolean | Mirror the board (to show bottom layers) |
| modeMulti | boolean | Multi output; output path is a directory (GUI-like plotting) |
| modeSingle | boolean | Single file; output path is full path; LAYER_LIST controls all layers |
| negative | boolean | Plot as negative |
| outputPath * | string | Output SVG file path (or directory in multi mode) |
| pageSizeMode | number | Page sizing mode (0 frame+title block, 1 current page size, 2 board area only) |
| sketchDnpFootprintsOnFabLayers | boolean | Plot DNP footprints in sketch mode on fab layers |
| sketchPadsOnFabLayers | boolean | Draw pad outlines and numbers on fab layers |
| subtractSoldermask | boolean | Subtract soldermask from silkscreen |
| theme | string | Color theme to use (default: PCB editor settings) |
export_pdfExport the PCB layout as a PDF document, optionally selecting layers, page size and colour mode.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Whether to export in black and white |
| frameReference | boolean | Whether to include frame reference |
| layers | array | Optional array of layer names to include (default: all) |
| outputPath * | string | Path to save the PDF file |
| pageSize | string | Page size |
export_posGenerate a component placement (position / pick-and-place) file via kicad-cli, exposing the full CLI option set (side, format, units, bottom-negate-X, drill-file origin, SMD-only, exclude through-hole / DNP, gerber board edge). Rich CLI sibling of export_position_file. Reads the last SAVED state of the .kicad_pcb.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to the .kicad_pcb (default: current board) |
| bottomNegateX | boolean | Use negative X coordinates for bottom-layer footprints (ascii/csv only) |
| excludeDnp | boolean | Exclude all footprints with the Do Not Populate flag set |
| excludeFpTh | boolean | Exclude all footprints with through-hole pads (ascii/csv only) |
| format | string | Output format (default ascii) |
| gerberBoardEdge | boolean | Include board edge layer (Gerber only) |
| outputPath * | string | Output position file path |
| side | string | Board side (gerber format only supports front or back; default both) |
| smdOnly | boolean | Include only SMD footprints (ascii/csv only) |
| units | string | Output units; ascii or csv format only (default in) |
| useDrillFileOrigin | boolean | Use drill/place file origin (ascii/csv only) |
export_position_fileExport a component placement/position file (pick-and-place) for PCB assembly in CSV or ASCII format.| Parameter | Type | Description |
|---|---|---|
| format | string | File format (default: CSV) |
| outputPath * | string | Path to save the position file |
| side | string | Which board side to include (default: both) |
| units | string | Units to use (default: mm) |
export_sch_bomGenerate a Bill of Materials from a schematic via kicad-cli (`sch export bom`), exposing the full option set (presets, field/label lists, grouping, sorting, filtering, DNP/excluded-from-BOM handling, and field/string/ref delimiters). schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| excludeDnp | boolean | Exclude symbols marked Do-Not-Populate |
| fieldDelimiter | string | Separator between output fields/columns (default ',') |
| fields | string | Ordered comma list of fields to export (supports special substitutions) |
| filter | string | Filter string to remove output lines |
| formatPreset | string | Named BOM format preset from the schematic, e.g. 'CSV' |
| groupBy | string | Fields to group references by when field values match |
| includeExcludedFromBom | boolean | Include symbols marked 'Exclude from BOM' |
| keepLineBreaks | boolean | Keep line break characters from input fields |
| keepTabs | boolean | Keep tab characters from input fields |
| labels | string | Ordered comma list of labels to apply to the exported fields |
| outputPath * | string | Output BOM file path |
| preset | string | Named BOM preset from the schematic, e.g. 'Grouped By Value' |
| refDelimiter | string | Character between individual references (default ',') |
| refRangeDelimiter | string | Character for reference ranges; blank disables ranges (default '-') |
| schematicPath * | string | Path to the .kicad_sch (required) |
| sortAsc | string | Sort ascending ('true') or descending ('false') |
| sortField | string | Field name to sort by (default Reference) |
| stringDelimiter | string | Character to surround fields with (default '"') |
export_sch_dxfExport a schematic to DXF via kicad-cli (`sch export dxf`), one DXF per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, and page selection. schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Black and white only |
| defaultFont | string | Default font name |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| excludeDrawingSheet | boolean | No drawing sheet |
| outputDir * | string | Output directory for the DXF files |
| pages | string | Comma list of page numbers to print (blank = all pages) |
| schematicPath * | string | Path to the .kicad_sch (required) |
| theme | string | Color theme to use (default: schematic settings) |
export_sch_hpglExport a schematic to HPGL via kicad-cli (`sch export hpgl`), one plot per page into a directory. Exposes drawing-sheet override, exclude-drawing-sheet, default-font, page selection, pen size, and the origin/scale mode. schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| defaultFont | string | Default font name |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| excludeDrawingSheet | boolean | No drawing sheet |
| origin | number | Origin and scale: 0 bottom left, 1 centered, 2 page fit, 3 content fit |
| outputDir * | string | Output directory for the HPGL files |
| pages | string | Comma list of page numbers to print (blank = all pages) |
| penSize | number | Pen size in mm (default 0.5) |
| schematicPath * | string | Path to the .kicad_sch (required) |
export_sch_pdfExport a schematic to PDF via kicad-cli (`sch export pdf`), exposing the full option set (drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, the PDF property-popup / hierarchical-link / metadata excludes, no-background-color, and page selection). schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Black and white only |
| defaultFont | string | Default font name |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| excludeDrawingSheet | boolean | No drawing sheet |
| excludePdfHierarchicalLinks | boolean | Do not generate clickable links for hierarchical elements in PDF |
| excludePdfMetadata | boolean | Do not generate PDF metadata from AUTHOR and SUBJECT variables |
| excludePdfPropertyPopups | boolean | Do not generate property popups in PDF |
| noBackgroundColor | boolean | Avoid setting a background color (regardless of theme) |
| outputPath * | string | Output PDF file path |
| pages | string | Comma list of page numbers to print (blank = all pages) |
| schematicPath * | string | Path to the .kicad_sch (required) |
| theme | string | Color theme to use (default: schematic settings) |
export_sch_psExport a schematic to PostScript via kicad-cli (`sch export ps`), one PS per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, no-background-color, and page selection. schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Black and white only |
| defaultFont | string | Default font name |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| excludeDrawingSheet | boolean | No drawing sheet |
| noBackgroundColor | boolean | Avoid setting a background color (regardless of theme) |
| outputDir * | string | Output directory for the PostScript files |
| pages | string | Comma list of page numbers to print (blank = all pages) |
| schematicPath * | string | Path to the .kicad_sch (required) |
| theme | string | Color theme to use (default: schematic settings) |
export_sch_python_bomExport the legacy Python-BOM intermediate XML from a schematic via kicad-cli (`sch export python-bom`). This is the XML netlist consumed by the schematic editor's Python BOM scripts. Minimal option set (output + input only). schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| outputPath * | string | Output XML file path |
| schematicPath * | string | Path to the .kicad_sch (required) |
export_sch_svgExport a schematic to SVG via kicad-cli (`sch export svg`), one SVG per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, no-background-color, and page selection. schematicPath is REQUIRED.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Black and white only |
| defaultFont | string | Default font name |
| defineVar | array | Project variable overrides as 'KEY=VALUE' strings |
| drawingSheet | string | Path to a drawing sheet override |
| excludeDrawingSheet | boolean | No drawing sheet |
| noBackgroundColor | boolean | Avoid setting a background color (regardless of theme) |
| outputDir * | string | Output directory for the SVG files |
| pages | string | Comma list of page numbers to print (blank = all pages) |
| schematicPath * | string | Path to the .kicad_sch (required) |
| theme | string | Color theme to use (default: schematic settings) |
export_schematic_pdfExport schematic to PDF format using kicad-cli.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Export in black and white |
| outputPath * | string | Output PDF file path |
| schematicPath * | string | Path to the .kicad_sch file |
export_schematic_svgExport schematic to SVG format using kicad-cli.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Export in black and white |
| outputPath * | string | Output SVG file path |
| schematicPath * | string | Path to the .kicad_sch file |
export_svgExport the PCB layout as an SVG vector image, optionally selecting layers and colour mode.| Parameter | Type | Description |
|---|---|---|
| blackAndWhite | boolean | Whether to export in black and white |
| includeComponents | boolean | Whether to include component outlines |
| layers | array | Optional array of layer names to include (default: all) |
| outputPath * | string | Path to save the SVG file |
export_symbolExtract a single symbol from a .kicad_sym library into a standalone .kicad_sym file.| Parameter | Type | Description |
|---|---|---|
| libraryPath * | string | Path to the source .kicad_sym file |
| outputPath * | string | Path for the output .kicad_sym file |
| symbolName * | string | Symbol to export |
export_variant_bomExport the bill of materials for a named assembly variant.| Parameter | Type | Description |
|---|---|---|
| excludeDnp | boolean | Exclude do-not-populate components from the BOM |
| outputPath * | string | Path for the output CSV file |
export_vrmlVRML 3D model| Parameter | Type | Description |
|---|---|---|
| includeComponents | boolean | Whether to include 3D component models |
| outputPath * | string | Path to save the VRML file |
| useRelativePaths | boolean | Whether to use relative paths for 3D models |
find_componentSearch by reference or value| Parameter | Type | Description |
|---|---|---|
| reference | string | Reference designator to search for |
| value | string | Component value to search for |
find_duplicate_symbolsFind the same part stored twice under different names| Parameter | Type | Description |
|---|---|---|
| ignoreCase | boolean | Compare part numbers and values case-insensitively (default true) |
| libraryNicknames | array | The nickname(s) this library is registered under in a lib_id, if the file stem and the sym-lib-table entries beside the scanned sheets do not cover it. A bare 'R' in this library is not Device:R, so placements naming another library are not counted towards it. |
| libraryPath * | string | Absolute path to the .kicad_sym library file |
| matchBy | array | How to decide two symbols are the same part (default: mpn, value_footprint). 'graphics' is off by default: every resistor in a library shares one body, so on passives it groups the whole family. |
| minGroupSize | number | Only report groups with at least this many symbols (default 2) |
| schematicPaths | array | .kicad_sch files or directories to scan for usage counts (recursive, skipping autosave sheets and backup/history folders). Only placements of this library count, and a sub-sheet instantiated more than once counts once per instantiation. |
find_orphaned_wiresFind wire segments with at least one dangling endpoint — not connected to a component pin, net label, or another wire. Orphaned wires cause ERC 'wire end unconnected' errors. Does not require the KiCad UI to be running.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch schematic file |
find_overlapping_elementsDetect spatially overlapping symbols, wires, and labels in the schematic. Finds duplicate power symbols at the same position, collinear overlapping wires, and labels stacked on top of each other.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch schematic file |
| tolerance | number | Distance threshold in mm for label proximity and wire collinearity checks. Symbol overlap uses bounding-box intersection. (default: 0.5) |
find_wires_crossing_symbolsFind all wires that cross over component symbol bodies. Wires passing over symbols are unacceptable in schematics — they indicate routing mistakes where a wire was drawn across a component instead of around it. Also lists, under pinsOnWireInterior (with pinsOnWireInteriorCount), every symbol pin, power pins included, that lies on the middle of a wire without being connected to it: KiCad joins a pin to a wire only where the wire ends or where a junction sits on the pin, so a label there does not connect it to the wire. collisions and count are unchanged.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch schematic file |
generate_netlistGenerate netlist from schematic| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Absolute path to the .kicad_sch schematic file |
get_backend_stateReport which backend (IPC or SWIG) is in useget_board_2d_viewGenerate board preview image| Parameter | Type | Description |
|---|---|---|
| format | string | Output format (default: png) |
| height | number | Output image height in pixels (default: 1200) |
| layers | array | Layer names to include, e.g. ["F.Cu","B.Cu","Edge.Cuts"]. Omit for all layers. |
| pcbPath | string | Absolute path to the .kicad_pcb file. Falls back to the currently loaded board if omitted. |
| responseMode | string | "inline" (default): image returned directly; "file": written to disk, filePath returned |
| width | number | Output image width in pixels (default: 1600) |
get_board_extentsGet board bounding box| Parameter | Type | Description |
|---|---|---|
| unit | string | Unit of measurement for the result |
get_board_infoRetrieve board propertiesget_board_originRead back the auxiliary (drill/place) origin and grid origin of a .kicad_pcb in mm.| Parameter | Type | Description |
|---|---|---|
| boardPath * | string | Path to the .kicad_pcb file |
get_category_toolsReturn all tools available in a specific category. Use list_tool_categories first to find valid category names.| Parameter | Type | Description |
|---|---|---|
| category * | string | Category name from list_tool_categories |
get_component_geometryReturn separated footprint geometry bboxes: body, pads, courtyard, keepout, fab, silk and text.| Parameter | Type | Description |
|---|---|---|
| reference | string | Optional single component reference |
| refs | array | Optional list of component references |
get_component_listList all placed components| Parameter | Type | Description |
|---|---|---|
| boundingBox | object | Filter by bounding box region. The footprint anchor must lie inside |
| includePads | boolean | Add each footprint's pads with number, net, and position in millimetres |
| layer | string | Filter by layer (e.g., 'F.Cu', 'B.Cu') |
| matchPadCenter | boolean | With boundingBox, also include a footprint when any pad centre is inside, even if the anchor is outside |
| unit | string | Unit for coordinates (default: mm) |
get_component_padsGet all pad information| Parameter | Type | Description |
|---|---|---|
| reference * | string | Reference designator of the component (e.g., 'U1') |
| unit | string | Unit for coordinates (default: mm) |
get_component_propertiesQuery component details| Parameter | Type | Description |
|---|---|---|
| reference * | string | Reference designator of the component (e.g., 'R5') |
get_component_variantRead a component's DNP and field overrides for an assembly variant.get_datasheet_urlGet LCSC datasheet URL for a component| Parameter | Type | Description |
|---|---|---|
| lcsc * | string | LCSC part number, with or without "C" prefix (e.g. "C179739" or "179739") |
get_design_rulesReturn the current PCB design rules (clearance, track width, via sizes, courtyard settings).get_drc_violationsGet violation list by severity| Parameter | Type | Description |
|---|---|---|
| severity | string | Filter violations by severity |
get_elements_in_regionList all symbols, wires, and labels within a rectangular region of the schematic. Useful for understanding what is in a specific area before modifying it.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch schematic file |
| x1 * | number | Left X coordinate of the region in mm |
| x2 * | number | Right X coordinate of the region in mm |
| y1 * | number | Top Y coordinate of the region in mm |
| y2 * | number | Bottom Y coordinate of the region in mm |
get_footprint_infoGet detailed information about a specific footprint| Parameter | Type | Description |
|---|---|---|
| footprint_name * | string | Name of the footprint to get information about |
| library_name * | string | Name of the library containing the footprint |
get_jlcpcb_database_statsDatabase statisticsget_jlcpcb_partDetailed part info with pricing| Parameter | Type | Description |
|---|---|---|
| lcsc_number * | string | LCSC part number (e.g., 'C25804', 'C2286') |
get_layer_listList all board layersget_net_at_pointReturns the net name at a given (x, y) coordinate in a schematic, or null if no net label or wire endpoint is present at that position. Faster than get_pin_net when you only need the net name at a known coordinate and don't need pin traversal.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the schematic file (.kicad_sch) |
| x * | number | X coordinate in mm |
| y * | number | Y coordinate in mm |
get_net_connectionsTrace net connectivity| Parameter | Type | Description |
|---|---|---|
| netName * | string | Name of the net to query |
| schematicPath * | string | Path to the schematic file |
get_net_padsReturn every PCB pad attached to a net name or net code.| Parameter | Type | Description |
|---|---|---|
| net | string | Net name |
| netCode | number | KiCad net code |
| unit | string | Unit for coordinates (default: mm) |
get_nets_listList all nets with statistics| Parameter | Type | Description |
|---|---|---|
| includeStats | boolean | Add per-net stats: track count, total track length and via count |
| unit | string | Unit for track lengths (default: mm) |
get_pad_positionGet precise pad position| Parameter | Type | Description |
|---|---|---|
| pad * | string | Pad number or name (e.g., '1', 'A1') |
| reference * | string | Component reference designator (e.g., 'U1') |
| unit | string | Unit for coordinates (default: mm) |
get_padsReturn pads for one PCB component, selected refs, or all components, including XY, layer, size and net.| Parameter | Type | Description |
|---|---|---|
| reference | string | Optional component reference designator |
| refs | array | Optional reference filter |
| unit | string | Unit for coordinates (default: mm) |
get_project_infoRetrieve project metadataget_ratsnestEstimate ratsnest/airwire segments and lengths from current pad positions grouped by net.| Parameter | Type | Description |
|---|---|---|
| maxPadsPerNet | number | Skip nets above this pad count (default 128) |
| nets | array | Optional net-name filter |
get_registry_partInspect one part in detail| Parameter | Type | Description |
|---|---|---|
| id * | string | Registry part id (from search_parts_registry) |
get_schematic_componentInspect every field on a component (built-in + custom) including label positions| Parameter | Type | Description |
|---|---|---|
| reference * | string | Component reference designator (e.g. R1, U1) |
| schematicPath * | string | Path to the .kicad_sch file |
get_schematic_pin_locationsGet pin locations for component| Parameter | Type | Description |
|---|---|---|
| reference * | string | Component reference designator (e.g. U1, R1, J2) |
| schematicPath * | string | Path to the schematic file |
get_schematic_viewRasterized schematic preview| Parameter | Type | Description |
|---|---|---|
| format | string | Output format (default: png) |
| height | number | Image height in pixels (default: 900) |
| schematicPath * | string | Path to the .kicad_sch file |
| width | number | Image width in pixels (default: 1200) |
get_schematic_view_regionExport a cropped region of the schematic as an image (PNG or SVG). Specify bounding box coordinates in schematic mm. Useful for zooming into a specific area to inspect wiring or layout.| Parameter | Type | Description |
|---|---|---|
| format | string | Output image format (default: png) |
| height | number | Output image height in pixels (default: 600) |
| schematicPath * | string | Path to the .kicad_sch schematic file |
| width | number | Output image width in pixels (default: 800) |
| x1 * | number | Left X coordinate of the region in mm |
| x2 * | number | Right X coordinate of the region in mm |
| y1 * | number | Top Y coordinate of the region in mm |
| y2 * | number | Bottom Y coordinate of the region in mm |
get_sheet_propertiesList hierarchical sheets in a schematic with their name, file, uuid, position, and full property map (built-ins plus custom properties set via set_sheet_property). With sheetName or sheetPath, returns just that sheet.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the parent .kicad_sch |
| sheetName | string | Only this sheet (by display name) |
| sheetPath | string | Only this sheet (by file basename) |
get_stackupRead the stackup from the saved board file, not the board open in memory. Returns each copper, dielectric, mask, and silk entry with its thickness in millimetres. A thickness the stackup editor has locked is returned as thicknessMm plus thicknessLocked. Layer names are the names stored on the board, so a renamed layer such as 'Top Side' is returned beside the canonical F.Cu name. If an earlier save was refused, the file can be older than the session. Pass expected to compare those rows with a recipe in the same call; thicknessToleranceMm defaults to 0.001 mm and epsilonTolerance defaults to 0.01.| Parameter | Type | Description |
|---|---|---|
| epsilonTolerance | number | Allowed relative-permittivity difference. Default 0.01 |
| expected | array | Row index from get_stackup |
| thicknessToleranceMm | number | Allowed thickness difference in millimetres. Default 0.001 |
get_symbol_infoGet detailed information about a specific symbol (global or project-scope when projectPath is supplied or a project has been opened).| Parameter | Type | Description |
|---|---|---|
| projectPath | string | Optional: project directory or .kicad_pro/.kicad_pcb/.kicad_sch path so project-scope libraries are searched. |
| symbol * | string | Symbol specification (e.g., 'Device:R' or 'PCM_JLCPCB-MCUs:STM32F103C8T6') |
get_wire_connectionsReturns the net name and all wires and component pins connected at a given point. Accepts either a component reference + pin number (e.g. reference='U1', pin='3') or a schematic coordinate (x, y in mm). Returns net=null for unnamed (unlabelled) nets. The query point must be at a wire endpoint or junction — midpoints are not matched. Use get_schematic_pin_locations or list_schematic_wires to obtain exact endpoint coordinates.| Parameter | Type | Description |
|---|---|---|
| pin | string | Pin number or name (e.g. '3', 'SDA'). Pair with reference. |
| reference | string | Component reference (e.g. U1, R1). Pair with pin. |
| schematicPath * | string | Path to the schematic file |
| x | number | X coordinate of a wire endpoint in mm. Pair with y. |
| y | number | Y coordinate of a wire endpoint in mm. Pair with x. |
group_componentsGroup multiple components| Parameter | Type | Description |
|---|---|---|
| groupName * | string | Name for the component group |
| references * | array | Reference designators of components to group |
hierarchical_placeCluster a board's footprints by their schematic-sheet hierarchy (the HierPlace algorithm). After sync_schematic_to_board piles every footprint at the origin, this packs each functional block together as a starting point for manual placement. File-based: reads and rewrites the .kicad_pcb on disk, so save any in-memory board edits first. Locked footprints are left in place.| Parameter | Type | Description |
|---|---|---|
| boardPath * | string | Absolute path to the .kicad_pcb file to re-place |
import_3d_modelCopy a 3D model file (.step/.stp/.wrl/.x3d/.iges) into the project's *.3dshapes library folder and return a portable ${KIPRJMOD}/... path. Feed the returned 'modelPath' straight into add_footprint_3d_model or add_component_3d_model.| Parameter | Type | Description |
|---|---|---|
| libraryDir | string | Target *.3dshapes directory (absolute, or relative to the project). Default: <project>/<project>.3dshapes |
| modelPath * | string | Path to the source 3D model file to import |
| newName | string | Rename the copied file (source extension kept if omitted) |
| overwrite | boolean | Overwrite an existing destination file (default false) |
| projectPath * | string | Path to the .kicad_pro file or the project directory (used to locate the .3dshapes folder and compute ${KIPRJMOD}) |
import_eagle_projectConvert an Eagle project| Parameter | Type | Description |
|---|---|---|
| board_file * | string | Absolute path to the Eagle .brd board file |
| output_dir | string | Output directory for the KiCad project (defaults to a subdirectory next to the .brd file) |
| project_name | string | KiCad project name (defaults to the .brd filename without extension) |
| schematic_file | string | Absolute path to the Eagle .sch schematic file (auto-detected from .brd path if omitted) |
import_pcbLoad an existing `.kicad_pcb` into the session| Parameter | Type | Description |
|---|---|---|
| format | string | Input format hint (default 'auto'). Use 'auto' for binary Cadence Allegro .brd files — there is no 'allegro' literal in this enum. |
| inputFile * | string | Absolute path to the vendor PCB file to import |
| outputFile | string | Destination .kicad_pcb path (defaults beside inputFile, same basename) |
| reportFormat | string | Capture a structured import report from kicad-cli (default 'none') |
import_sesImport a Specctra SES (session) file into the current PCB. Use after running Freerouting externally.| Parameter | Type | Description |
|---|---|---|
| boardPath | string | Path to .kicad_pcb file (default: current board) |
| sesPath * | string | Path to the .ses file to import |
import_svg_logoImport SVG file as PCB silkscreen polygons| Parameter | Type | Description |
|---|---|---|
| filled | boolean | Fill polygons with solid colour (default true) |
| layer | string | PCB layer name, e.g. F.SilkS or B.SilkS (default: F.SilkS) |
| pcbPath * | string | Path to the .kicad_pcb file |
| strokeWidth | number | Outline stroke width in mm (0 = no outline, default 0) |
| svgPath * | string | Path to the SVG logo file |
| width * | number | Target width of the logo in mm (height is scaled to preserve aspect ratio) |
| x * | number | X position of the logo top-left corner in mm |
| y * | number | Y position of the logo top-left corner in mm |
import_symbolCopy a symbol from one .kicad_sym library into another, with optional rename and overwrite. The target library is created if missing. A derived symbol (one using (extends ...)) needs its parent imported into the target first.| Parameter | Type | Description |
|---|---|---|
| newName | string | Rename the symbol on import |
| overwrite | boolean | Overwrite if the symbol already exists in the target |
| sourceLibraryPath * | string | Path to the source .kicad_sym file |
| symbolName * | string | Symbol to import |
| targetLibraryPath * | string | Path to the target .kicad_sym (created if missing) |
install_gui_driverDeploy the in-KiCad GUI-driver helper plugin into the user's KiCad plugin tree (opt-in). The connect path no longer installs it as a side effect. After install, set KICAD_GUI_DRIVER_ENABLE=1 in KiCad's environment and restart (or Refresh Plugins) to open the token-gated control channel.is_dirtyReturn whether the MCP knows the loaded board has unsaved memory changes or external disk changes.kicad_gui_clickActivate a menu item or AUI toolbar tool by name (as shown by kicad_gui_tree). Executes immediately — no gating.| Parameter | Type | Description |
|---|---|---|
| id | number | Explicit wx item id (skips name resolution). |
| kind | string | Item kind when passing an explicit id (default menu). |
| name | string | Menu label or toolbar tooltip to activate. |
kicad_gui_click_atspiBackend B: activate the first accessible node matching `name` (and optional role) via do_action.| Parameter | Type | Description |
|---|---|---|
| app | string | Accessible application name filter (default 'kicad'). |
| name * | string | Accessible name to activate. |
| role | string | Optional role substring filter (e.g. 'push button', 'menu item'). |
kicad_gui_screenshotCapture the driven frame's screen rectangle to a PNG and return its path.| Parameter | Type | Description |
|---|---|---|
| path | string | Absolute path of the .png file to write, in a directory that already exists (a temp file if omitted). |
kicad_gui_treeEnumerate the live KiCad GUI via the in-process helper: menus/submenus (name + wx id) and AUI toolbars (id + tooltip). Destructive names carry a '⚠ ' prefix.kicad_gui_tree_atspiBackend B: dump KiCad's accessible widget tree (role + name) from the Linux a11y bus — zero in-KiCad code.| Parameter | Type | Description |
|---|---|---|
| app | string | Accessible application name filter (default 'kicad'). |
| maxDepth | number | Recursion depth limit (default 12). |
kicad_gui_wait_forPoll until a shown top-level window whose title contains `title` exists (or timeout).| Parameter | Type | Description |
|---|---|---|
| timeout | number | Seconds to wait (default 10). |
| title * | string | Substring of the window title to wait for. |
kicad_pcb_snapshotGUI playbook: trigger Zoom to Fit, wait for the repaint, screenshot the frame.| Parameter | Type | Description |
|---|---|---|
| path | string | Absolute path of the .png file to write, in a directory that already exists (a temp file if omitted). |
| settle | number | Seconds to wait after zoom (default 0.5). |
kicad_reload_and_open_pluginGUI playbook (plugin dev/test loop): trigger Refresh Plugins, then open the named External-Plugins entry.| Parameter | Type | Description |
|---|---|---|
| name * | string | Plugin menu entry to open after the refresh. |
| settle | number | Seconds to wait after refresh (default 1). |
kicad_run_action_pluginFind the Tools > External Plugins submenu entry with the given name (e.g. 'Open kiHarness') and trigger it.| Parameter | Type | Description |
|---|---|---|
| name * | string | Plugin menu entry name. |
kicad_run_drcGUI playbook: open the Design Rules Checker dialog, click 'Run DRC', then scrape the violations grid into structured results.| Parameter | Type | Description |
|---|---|---|
| dialogTitle | string | Dialog title substring (default 'DRC'). |
| runTimeout | number | Seconds to wait for results (default 60). |
| timeout | number | Seconds to wait for the dialog (default 15). |
launch_kicad_uiLaunch KiCAD application| Parameter | Type | Description |
|---|---|---|
| autoLaunch | boolean | Whether to launch KiCAD if not running (default: true) |
| projectPath | string | Optional path to .kicad_pcb file to open |
lint_offgridReport every off-grid connection-relevant coordinate in a schematic — wire/bus endpoints, symbol origins, label/junction/no_connect anchors — and optionally snap them to the nearest grid point (fix: true). KiCad's connection grid is fixed at 50 mil (1.27 mm) and junction placement uses exact matching, so a single off-grid endpoint can poison junction placement for a whole sheet. Unlike snap_to_grid (whole-file rewrite), fixes here are byte-exact text splices that preserve file formatting; (lib_symbols) content and property field positions are never touched. Offenders more than 0.5 mm off-grid are reported as NEEDS HUMAN and never auto-snapped.| Parameter | Type | Description |
|---|---|---|
| fix | boolean | Snap offenders in place (default false: report only) |
| gridSize | number | Grid spacing in mm (default: 1.27 mm = 50 mil, the KiCad connection grid) |
| schematicPath * | string | Path to the .kicad_sch schematic file |
lint_schematic_cosmeticNetlist-safe cosmetic cleanup of a .kicad_sch, applied as raw-text edits that never move a symbol, pin, wire, junction, or label anchor. Pass hide_pin_names gives every top-level embedded lib_symbol a (pin_names ... (hide yes)) directive — in label-driven schematics the internal pin names duplicate the net label on the same pin. Pass orient_labels sets each net/global/hierarchical label's text angle and justify from the sheet-space outward side of the pin it sits on (rotation/mirror aware), so text reads away from the symbol body; labels not on a pin are left untouched. Complements autoplace_schematic_fields (which handles Reference/Value fields).| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Report change counts without writing (default false) |
| passes | array | Passes to run, in order (default: both) |
| schematicPath * | string | Path to the .kicad_sch file |
list_floating_labelsReturns all net labels in the schematic that are not connected to any component pin. A label is 'floating' when no component pin falls on the wire-network reachable from the label's position. Floating labels indicate misplaced or off-grid labels that cause ERC errors. Does not require the KiCAD UI to be running.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch schematic file |
list_footprint_librariesList available .pretty footprint libraries and their contents (first 20 footprints per library). Searches KiCAD standard install paths by default.| Parameter | Type | Description |
|---|---|---|
| searchPaths | array | Override default search paths. Each entry should be a directory that contains .pretty subdirs. |
list_graphicsList PCB graphic/drawing items such as gr_line, gr_arc, gr_rect, gr_text and dimensions.| Parameter | Type | Description |
|---|---|---|
| layer | string | Optional layer filter, e.g. Edge.Cuts or F.SilkS |
list_librariesList all available KiCAD footprint libraries| Parameter | Type | Description |
|---|---|---|
| search_paths | array | Optional additional search paths for libraries |
list_library_footprintsList footprints in a KiCAD library, sorted by name; returns the first 100 unless `limit` is set| Parameter | Type | Description |
|---|---|---|
| filter | string | Keep names containing this text (case-insensitive, * as a wildcard) |
| library_name * | string | Name of the library to list footprints from |
| limit | number | Maximum number of footprints to list (default 100) |
list_library_symbolsList all symbols in a specific KiCAD symbol library (global or project-scope when projectPath is supplied or a project has been opened).| Parameter | Type | Description |
|---|---|---|
| library * | string | Library name (e.g., 'Device', 'PCM_JLCPCB-MCUs') |
| projectPath | string | Optional: project directory or .kicad_pro/.kicad_pcb/.kicad_sch path to resolve project-scope libraries. |
list_library_tableRead every registered library and check its URI resolveslist_schematic_componentsList all components| Parameter | Type | Description |
|---|---|---|
| filter | object | Filter by library ID (e.g., 'Device:R') |
| schematicPath * | string | Path to the .kicad_sch file |
list_schematic_labelsList all net labels, global labels, and power flags in the schematic. Optionally filter by label name (netName) and/or label type (labelType).| Parameter | Type | Description |
|---|---|---|
| labelType | string | Filter by label type. 'net' = local label, 'global' = global label, 'power' = power symbol. Omit to return all types. |
| netName | string | Filter to labels whose name exactly matches this string (case-sensitive). Omit to return all labels. |
| schematicPath * | string | Path to the .kicad_sch file |
list_schematic_librariesList available KiCAD symbol libraries| Parameter | Type | Description |
|---|---|---|
| searchPaths | array | Optional search paths for libraries |
list_schematic_netsList all nets in the schematic with their connections.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
list_schematic_rectanglesList the rectangles drawn on a schematic sheet (graphic boxes, such as a titled box around a group of parts). Returns each one's uuid, start and end corners in mm, stroke and fill, plus the corner radius and locked flag when KiCad wrote them. Rectangles inside symbol bodies are not included. Use the uuid with set_schematic_rectangle to move, resize, restyle or delete one.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
list_schematic_textsList all free-form text annotations (notes, headings, documentation strings) in the schematic. Returns position, angle, font size, bold/italic flags, and justification for each text element. Optionally filter by a substring match on the text content.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
| text | string | Case-insensitive substring filter — only return texts containing this string |
list_schematic_wiresList all wires in the schematic with start/end coordinates.| Parameter | Type | Description |
|---|---|---|
| schematicPath * | string | Path to the .kicad_sch file |
list_symbol_librariesList all available KiCAD symbol libraries from global sym-lib-table, plus the project's sym-lib-table when projectPath (or any related file) is supplied or a project has been opened.| Parameter | Type | Description |
|---|---|---|
| projectPath | string | Optional: project directory or .kicad_pro/.kicad_pcb/.kicad_sch path. Including this exposes project-scope sym-lib-table libraries. |
list_symbol_pinsReturn pin names, numbers, and types for a symbol directly from the library — no schematic required. Use this before add_schematic_component to discover pins for connect_to_net calls. Each pin has 'number' (e.g. '1', 'A5') and 'name' (e.g. 'FB', 'GND') — connect_to_net accepts either. Pass schematicPath to resolve project-local symbols. Returns close-match suggestions if the symbol name is slightly wrong.| Parameter | Type | Description |
|---|---|---|
| schematicPath | string | Path to .kicad_sch — enables project-local sym-lib-table lookup |
| symbol * | string | Symbol in 'Library:SymbolName' format (e.g., Device:R, Connector:Conn_01x04) |
list_symbols_in_libraryList all symbol names in a .kicad_sym library file.| Parameter | Type | Description |
|---|---|---|
| libraryPath * | string | Path to the .kicad_sym file |
list_tool_categoriesList all available KiCAD tool categories with their descriptions and tool counts. Use this to discover which tools exist; every tool can then be called directly by name.list_toolboxesList the toolboxes: groups of related KiCad tools, each with a description, its tools, and whether it is open. Your tool list holds the core tools plus the tools of open toolboxes; open a toolbox with open_toolbox to add its tools.list_variantsList the assembly variants registered in a KiCad project.load_schematicLoad an existing KiCAD schematic| Parameter | Type | Description |
|---|---|---|
| filename * | string | Path to the schematic file to load |
modify_traceChange trace width, layer, or net| Parameter | Type | Description |
|---|---|---|
| layer | string | New layer name |
| net | string | New net name |
| traceUuid * | string | UUID of the trace to modify |
| width | number | New trace width in mm |
move_componentReposition existing component| Parameter | Type | Description |
|---|---|---|
| layer | string | Optional target layer (e.g., 'F.Cu', 'B.Cu') - flips component if needed |
| position * | object | X coordinate |
| reference * | string | Reference designator of the component (e.g., 'R5') |
| rotation | number | Optional new rotation in degrees |
move_footprint_textMove or update a footprint Reference/Value/user text field without moving the footprint.| Parameter | Type | Description |
|---|---|---|
| field * | string | Text field to move, e.g. reference or value |
| layer | string | Optional destination layer |
| reference * | string | Component reference designator |
| rotation | number | Optional text rotation in degrees |
| unit | string | Coordinate unit |
| visible | boolean | Optional visibility |
| x | number | New X coordinate |
| y | number | New Y coordinate |
move_schematic_componentReposition component| Parameter | Type | Description |
|---|---|---|
| position * | object | New position in schematic mm coordinates |
| preserveWires | boolean | Stretch connected wire endpoints to follow the move, carrying the attached net labels, no-connect flags and wire bends along so the routing stays orthogonal (default true) |
| reference * | string | Reference designator (e.g., R1, U1) |
| schematicPath * | string | Path to the .kicad_sch file |
| straightenWires | boolean | Square up wire bends that the stretch turned diagonal, by carrying the neighbouring corner along with the pin (default true). Set false to leave stretched segments exactly as the drag left them. |
| unit | number | Unit of a multi-unit part (1=A, 2=B, …). Every unit of a part shares one reference, so without this the tool acts on whichever placement comes first in the file. Omit for single-unit parts. |
move_schematic_net_labelMove a net label (local, global, or hierarchical) to a new position in the schematic. Use currentPosition to disambiguate when multiple labels share the same name.| Parameter | Type | Description |
|---|---|---|
| currentPosition | object | Current position to disambiguate when multiple labels share the same name |
| labelType | string | Restrict search to a specific label type |
| netName * | string | Name of the net label to move |
| newPosition * | object | Target position in mm |
| schematicPath * | string | Path to the .kicad_sch file |
namedescriptionThe first 200 of 266 tools, in name order.
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 973 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 169 source files and found 3 calls to eval or shell execution, in src/server.ts:210 and src/server.ts:449 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/kicad-server.ts:3
- Starts other programs
- 51 callspython/commands/board/view.py:47, python/commands/board/view.py:67, python/commands/board/view.py:230
- Outbound network calls
- 11 callssrc/tools/parts-registry.ts:73, src/tools/parts-registry.ts:445, python/commands/digikey.py:37
- Writes or deletes files
- 121 callsgui_driver_plugin/plugins/listener.py:469, python/commands/add_library_symbol_property.py:132, python/commands/board/view.py:289
- Lockfile
- package-lock.json
Pattern matches on the source text of 169 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 973 words, fetched 6 days ago. The original in the repository is authoritative.
Read full README