About Kicad Protocol Schemas
Kicad Protocol Schemas is an MCP server published by oaslananka in the Science category: shared versioned protocol schemas and validators for KiCad Studio Kit extension/MCP compatibility contracts. Conduid read 137 tools from its source: add_footprint_inner_layer_graphic, dfm_calculate_manufacturing_cost, dfm_load_manufacturer_profile, dfm_run_manufacturer_check, emc_check_decoupling_placement, emc_check_differential_pair_symmetry and 131 more. It is published to npm as @oaslananka/kicad-protocol-schemas, a package with no command-line entry point.
The repository has 252 stars and 44 forks, and its last commit was on 1 Dec 2026. The latest release is protocol-schemas-v2.2.0 (30 Nov 2026): Features analysis: run bounded offline reference physics with native solver evidence (#2007) (b6468aa) Compatibility and licensing license: Current package metadata decl… It follows mcp-npm-v4.26.0 (30 Nov 2026), and the 5 most recent releases go back to mcp-server-v4.24.0 (27 Nov 2026). Its topics include eda, electronic-design-automation, gerber, kicad, kicad10 and pcb.
Install
npm install @oaslananka/kicad-protocol-schemasgit clone https://github.com/oaslananka/kicad-mcpTools (137)
add_footprint_inner_layer_graphicInject an inner-layer graphic primitive into a footprint block.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| layer * | string | |
| reference * | string | |
| shape_type * | string | |
| stroke_width_mm | number | |
| text | string | |
| x1_mm | number | |
| x2_mm | number | |
| y1_mm | number | |
| y2_mm | number |
dfm_calculate_manufacturing_costEstimate fabrication cost from board area, layers, and via count.| Parameter | Type | Description |
|---|---|---|
| manufacturer | string | |
| quantity | integer | |
| tier | string |
dfm_load_manufacturer_profileLoad a bundled manufacturer DFM profile for subsequent checks.| Parameter | Type | Description |
|---|---|---|
| manufacturer | string | |
| tier | string |
dfm_run_manufacturer_checkRun a manufacturer-aware DFM review using the active bundled profile.emc_check_decoupling_placementReview whether ICs have nearby decoupling capacitors.| Parameter | Type | Description |
|---|---|---|
| max_distance_mm | number |
emc_check_differential_pair_symmetryReview diff-pair skew and width symmetry.| Parameter | Type | Description |
|---|---|---|
| max_skew_ps | number | |
| net_n * | string | |
| net_p * | string |
emc_check_ground_plane_voidsReview GND plane presence and a simple void-risk proxy.| Parameter | Type | Description |
|---|---|---|
| max_void_area_mm2 | number |
emc_check_high_speed_routing_rulesReview a high-speed net class for a short-stub proxy.| Parameter | Type | Description |
|---|---|---|
| max_stub_length_mm | number | |
| net_class * | string |
emc_check_return_path_continuityCheck EMC return-path continuity for a signal or all critical high-speed nets.| Parameter | Type | Description |
|---|---|---|
| reference_plane_layer | string | |
| search_radius_mm | number | |
| signal_net | string |
emc_check_split_plane_crossingWarn when routed signals share layers with split non-ground planes.| Parameter | Type | Description |
|---|---|---|
| signal_nets * | array |
emc_check_via_stitchingEstimate via-stitching density from existing ground vias.| Parameter | Type | Description |
|---|---|---|
| ground_net | string | |
| max_gap_mm | number |
emc_run_full_complianceRun a lightweight EMC sweep with at least ten heuristic checks.| Parameter | Type | Description |
|---|---|---|
| standard | string |
export_bomExport a bill of materials.| Parameter | Type | Description |
|---|---|---|
| format | string |
export_drillExport drill files.| Parameter | Type | Description |
|---|---|---|
| output_subdir | string |
export_dxfExport a board layer to DXF when supported.| Parameter | Type | Description |
|---|---|---|
| layer | string |
export_gerberExport Gerber manufacturing files.| Parameter | Type | Description |
|---|---|---|
| layers | array | |
| output_subdir | string |
export_ipc2581Export the active PCB to IPC-2581 format.export_manufacturing_packageGenerate the gated manufacturing release package.| Parameter | Type | Description |
|---|---|---|
| approval_evidence_path | string | |
| variant | string |
export_netlistExport a KiCad schematic netlist.| Parameter | Type | Description |
|---|---|---|
| format | string |
export_odbExport the active PCB to ODB++ format.export_pcb_pdfExport the PCB to PDF.| Parameter | Type | Description |
|---|---|---|
| layers | array |
export_pick_and_placeExport pick and place (CPL) data for the active PCB.| Parameter | Type | Description |
|---|---|---|
| format | string | |
| variant | string |
export_sch_dxfExport the schematic to DXF when supported.export_sch_pdfExport the schematic to PDF.export_sch_python_bomExport the schematic BOM using KiCad's Python BOM engine.export_sch_svgExport the schematic to SVG when supported.export_spice_netlistExport a SPICE netlist.export_svgExport a board layer to SVG when supported.| Parameter | Type | Description |
|---|---|---|
| layer | string |
get_board_statsExport board statistics and return a readable preview.kicad_capability_parityReport how much of KiCad's programmatic surface this server can drive.| Parameter | Type | Description |
|---|---|---|
| domain | string | |
| query | string |
lib_assign_footprintAssign a footprint property to a schematic symbol.| Parameter | Type | Description |
|---|---|---|
| footprint * | string | |
| library * | string | |
| reference * | string |
lib_assign_lcsc_to_symbolAssign an LCSC part code to a schematic symbol property.| Parameter | Type | Description |
|---|---|---|
| lcsc_code * | string | |
| reference * | string |
lib_bind_part_to_symbolAssign a live part (LCSC/MPN) to a schematic symbol and optionally its footprint.| Parameter | Type | Description |
|---|---|---|
| auto_assign_footprint | boolean | If True, attempts to assign the footprint from the live part data to the symbol. Requires the schematic backend. |
| lcsc_code_or_mpn * | string | LCSC part code or manufacturer part number. |
| source | string | Parts source for detail lookup. |
| sym_ref * | string | Schematic reference designator (e.g. "U1", "C4"). |
lib_certify_footprintCertify a footprint against package, documentation, and standard checks (#201).| Parameter | Type | Description |
|---|---|---|
| footprint_path * | string |
lib_check_deratingCheck a part choice for reliability derating and approved-vendor (AVL) compliance.| Parameter | Type | Description |
|---|---|---|
| approved_vendors | array | |
| kind * | string | |
| manufacturer | string | |
| operating_value * | number | |
| parameter * | string | |
| rated_value * | number |
lib_check_sourcing_policyReturn a structured sourcing policy verdict for one live part.| Parameter | Type | Description |
|---|---|---|
| allowed_lifecycle | array | |
| approved_manufacturers | array | |
| lcsc_code_or_mpn * | string | |
| max_unit_price | number | |
| min_stock | integer | |
| require_rohs | boolean | |
| source | string |
lib_check_stock_availabilityCheck live stock availability by schematic reference or part number.| Parameter | Type | Description |
|---|---|---|
| mpns | array | |
| refs | array | |
| source | string |
lib_create_custom_symbolCreate a simple custom symbol in the active project directory.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| pins * | array |
lib_find_alternative_partsFind nearby alternative parts for the supplied LCSC code.| Parameter | Type | Description |
|---|---|---|
| lcsc_code * | string | |
| source | string | |
| tolerance_percent | number |
lib_generate_footprint_ipc7351Generate an IPC-7351B compliant KiCad footprint (.kicad_mod) and save it.| Parameter | Type | Description |
|---|---|---|
| ball_diameter_mm | number | BGA ball diameter in mm. |
| body_l_mm | number | Body length in mm. |
| body_w_mm | number | Body width in mm (QFP only; defaults to body_l_mm). |
| density | string | IPC-7351B density level: A (generous), B (nominal), C (compact). |
| exposed_pad_mm | number | Exposed pad size for QFN in mm. |
| output_path | string | Optional relative path inside output_dir. Defaults to ``footprints/<package>.kicad_mod``. |
| package * | string | Package family name (case-insensitive). |
| pin_count | integer | Number of leads / balls (required for multi-lead packages). |
| pitch_mm | number | Lead pitch in mm. |
| rows | integer | BGA rows or PinHeader row count (1 or 2). |
lib_generate_symbol_from_pintableGenerate a KiCad symbol (.kicad_sym) from a pin table and save it.| Parameter | Type | Description |
|---|---|---|
| datasheet | string | Datasheet URL or path. |
| description | string | Short human description. |
| footprint_hint | string | Default footprint (e.g. "Package_SO:SOIC-8_3.9x4.9mm_P1.27mm"). |
| name * | string | Symbol name, used as both the library entry and the default value. |
| output_path | string | Optional relative path inside output_dir. Defaults to ``symbols/<name>.kicad_sym``. |
| pins * | array | List of pin specification dicts. |
| reference_prefix | string | Ref-des prefix (U, J, Q, R, …). |
lib_get_bom_with_pricingGenerate a live BOM summary with unit and extended pricing.| Parameter | Type | Description |
|---|---|---|
| quantity | integer | |
| source | string |
lib_get_component_detailsReturn live component detail for a specific LCSC code or MPN.| Parameter | Type | Description |
|---|---|---|
| lcsc_code_or_mpn * | string | |
| source | string |
lib_get_datasheet_urlReturn a datasheet URL from the symbol library when available.| Parameter | Type | Description |
|---|---|---|
| library * | string | |
| symbol_name * | string |
lib_get_footprint_3d_modelReturn the configured 3D model path for a footprint.| Parameter | Type | Description |
|---|---|---|
| footprint * | string | |
| library * | string |
lib_get_footprint_infoReturn details for a single footprint.| Parameter | Type | Description |
|---|---|---|
| footprint * | string | |
| library * | string |
lib_get_symbol_infoReturn details for a single symbol.| Parameter | Type | Description |
|---|---|---|
| library * | string | |
| symbol_name * | string |
lib_list_footprintsList footprints in a specific library.| Parameter | Type | Description |
|---|---|---|
| library * | string |
lib_list_librariesList configured symbol and footprint libraries.lib_rebuild_indexRebuild the in-memory symbol search index.lib_recommend_partRecommend a purchasable part given electrical requirements.| Parameter | Type | Description |
|---|---|---|
| category * | string | Component category keyword to search (e.g. "LDO regulator", "N-channel MOSFET", "ferrite bead", "ESD protection"). |
| max_results | integer | Maximum number of recommendations to return. |
| only_basic | boolean | Prefer JLCPCB basic parts (lower assembly cost). |
| package | string | Optional SMD package filter (e.g. "SOT-23", "SOIC-8"). |
| requirements * | object | Dict of electrical parameter hints used for post-search filtering. Common keys: ``voltage_v``, ``current_a``, ``vgs_v``, ``rds_on_mohm``, ``psrr_db``, ``capacitance_uf``, ``resistance_ohm``. Values can be numbers (min) or ``{"min": x, "max": y}`` dicts. |
| source | string | Parts source: ``"jlcsearch"``, ``"nexar"``, or ``"digikey"``. |
lib_search_componentsSearch live component sources for purchasable parts.| Parameter | Type | Description |
|---|---|---|
| keyword | string | |
| lifecycle | string | |
| min_stock | integer | |
| only_basic | boolean | |
| package | string | |
| query | string | |
| rohs_compliant | boolean | |
| sort_by | string | |
| source | string |
lib_search_footprintsSearch footprint libraries by footprint name.| Parameter | Type | Description |
|---|---|---|
| library_filter | string | |
| page | integer | |
| page_size | integer | |
| query * | string |
lib_search_symbolsSearch symbol libraries by name, description, or keywords.| Parameter | Type | Description |
|---|---|---|
| library_filter | string | |
| page | integer | |
| page_size | integer | |
| query * | string |
lib_validate_footprint_ipc7351Validate a two-terminal chip footprint against its IPC-7351B nominal (hard gate).| Parameter | Type | Description |
|---|---|---|
| density | string | |
| footprint_path * | string | |
| size_code * | string | |
| tolerance_mm | number |
lib_verify_component_contractVerify a placed component's symbol, footprint, and pins actually match.| Parameter | Type | Description |
|---|---|---|
| reference * | string |
mfg_check_import_supportReport whether the detected KiCad CLI advertises a given board-import format.| Parameter | Type | Description |
|---|---|---|
| format * | string |
mfg_correct_cpl_rotationsApply JLCPCB CPL rotation corrections to a KiCad-exported pick-and-place CSV.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be True when ``dry_run`` is False and a file will be written. |
| cpl_csv_path * | string | Path to the CPL CSV file (relative to project dir). |
| dry_run | boolean | If True, return a preview table without writing the file. |
| output_path | string | Output path for the corrected CSV. Defaults to ``<stem>_jlcpcb_corrected.csv`` next to the input file. |
mfg_create_release_evidenceGenerate a machine-readable manufacturing release evidence bundle.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | Evaluate gates without writing the evidence file. |
| output_path | string | Output directory for the evidence bundle (default: project output/). |
| product_domain | string | ``"selv"`` (Safety Extra-Low Voltage, ≤ 60 V DC) or ``"hazardous_mains"`` (> 60 V DC, requires HV safety gate). |
| voltage_v | number | Working voltage in volts; used to auto-select safety domain. |
| waive_missing_artifacts | boolean | If True, missing artifact types do not block release. |
mfg_generate_release_manifestGenerate a SHA256-signed release manifest for the manufacturing package.| Parameter | Type | Description |
|---|---|---|
| output_path | string | Subdirectory inside the project (defaults to ``output/``). |
mfg_generate_test_planGenerate a bring-up test plan from the project design intent.| Parameter | Type | Description |
|---|---|---|
| confirm_overwrite | boolean | If True, allow overwriting an existing output file. |
| output_path | string | Optional relative path for saving the plan (e.g. ``"test_plan.md"``). If omitted, returns the plan as text only. |
mfg_import_allegroImport an Allegro board into a KiCad project directory.| Parameter | Type | Description |
|---|---|---|
| allegro_brd_path * | string | |
| output_dir | string |
mfg_import_gedaImport a gEDA PCB into a KiCad project directory.| Parameter | Type | Description |
|---|---|---|
| geda_pcb_path * | string | |
| output_dir | string |
mfg_import_padsImport a PADS PCB into a KiCad project directory.| Parameter | Type | Description |
|---|---|---|
| output_dir | string | |
| pads_pcb_path * | string |
mfg_import_specctraImport a Specctra DSN/SES file into a KiCad project directory.| Parameter | Type | Description |
|---|---|---|
| output_dir | string | |
| specctra_ses_path * | string |
mfg_panelizePanelize the active PCB using KiKit.| Parameter | Type | Description |
|---|---|---|
| cols | integer | Number of board columns in the panel. |
| confirm | boolean | Must be True when ``dry_run`` is False to run KiKit. |
| dry_run | boolean | If True, return the planned command and output path without writing files. |
| frame_width_mm | number | Panel frame/rail width in mm. |
| layout | string | Panel layout type: ``"grid"`` (rectangular array), ``"mousebites"`` (tab+mousebite breakaway), or ``"vcut"`` (V-cut scoring). |
| output_path | string | Optional output file path (relative to output_dir). Defaults to ``panel/<boardname>_panel_<rows>x<cols>.kicad_pcb``. |
| rows | integer | Number of board rows in the panel. |
| spacing_mm | number | Gap between boards in mm. |
pcb_add_barcodeAdd a production barcode marker to the board file using KiCad's native barcode format.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| barcode_type | string | |
| content * | string | |
| hide_text | boolean | |
| layer | string | |
| size_mm | number | |
| text_height_mm | number | |
| x_mm * | number | |
| y_mm * | number |
pcb_add_bitmap_board_artImport a bitmap/logo as deterministic board-art rectangles on a PCB layer.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| invert | boolean | |
| layer | string | |
| max_pixels | integer | |
| max_rects | integer | |
| source_image * | string | |
| threshold | integer | |
| width_mm | number | |
| x_mm * | number | |
| y_mm * | number |
pcb_add_blind_viaAdd a blind or buried via between the requested copper layers.| Parameter | Type | Description |
|---|---|---|
| diameter_mm | number | |
| drill_mm | number | |
| from_layer * | string | |
| net_name | string | |
| to_layer * | string | |
| x_mm * | number | |
| y_mm * | number |
pcb_add_circleAdd a board graphic circle.| Parameter | Type | Description |
|---|---|---|
| cx_mm * | number | |
| cy_mm * | number | |
| layer | string | |
| radius_mm * | number | |
| width_mm | number |
pcb_add_copper_zoneAlias for pcb_add_zone; use only outside an active transaction.| Parameter | Type | Description |
|---|---|---|
| clearance_mm | number | |
| corners * | any | |
| layer * | string | |
| min_width_mm | number | |
| name | string | |
| net_name * | string | |
| priority | integer | |
| thermal_bridge_width_mm | number | |
| thermal_gap_mm | number | |
| thermal_relief | boolean |
pcb_add_fiducial_marksAppend simple fiducial footprints near the board corners.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| count | integer | |
| diameter_mm | number | |
| margin_mm | number |
pcb_add_microviaAdd a microvia between adjacent copper layers.| Parameter | Type | Description |
|---|---|---|
| diameter_mm | number | |
| drill_mm | number | |
| from_layer * | string | |
| net_name | string | |
| to_layer * | string | |
| x_mm * | number | |
| y_mm * | number |
pcb_add_mounting_holesAppend standard mounting-hole footprints around the current board frame.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| clearance_mm | number | |
| diameter_mm | number | |
| hole_clearance_mm | number | |
| keepout | boolean | |
| keepout_allow_pours | boolean | |
| margin_mm | number | |
| pattern | string |
pcb_add_rectangleAdd a board graphic rectangle.| Parameter | Type | Description |
|---|---|---|
| layer | string | |
| width_mm | number | |
| x1_mm * | number | |
| x2_mm * | number | |
| y1_mm * | number | |
| y2_mm * | number |
pcb_add_segmentAdd a board graphic segment.| Parameter | Type | Description |
|---|---|---|
| layer | string | |
| width_mm | number | |
| x1_mm * | number | |
| x2_mm * | number | |
| y1_mm * | number | |
| y2_mm * | number |
pcb_add_teardropsCreate small copper helper zones at simple pad-to-track junctions.| Parameter | Type | Description |
|---|---|---|
| length_ratio | number | |
| max_count | integer | |
| net_classes | array | |
| width_ratio | number |
pcb_add_textAdd board text.| Parameter | Type | Description |
|---|---|---|
| bold | boolean | |
| italic | boolean | |
| layer | string | |
| rotation_deg | number | |
| size_mm | number | |
| text * | string | |
| x_mm * | number | |
| y_mm * | number |
pcb_add_trackAdd one caller-specified straight track segment; no path planning or DRC.| Parameter | Type | Description |
|---|---|---|
| layer | string | |
| net_name | string | |
| width_mm | number | |
| x1_mm * | number | |
| x2_mm * | number | |
| y1_mm * | number | |
| y2_mm * | number |
pcb_add_track_segmentAdd exactly one explicit straight segment; not an autorouter or path planner.| Parameter | Type | Description |
|---|---|---|
| layer | string | |
| net_name | string | |
| width_mm | number | |
| x1_mm * | number | |
| x2_mm * | number | |
| y1_mm * | number | |
| y2_mm * | number |
pcb_add_tracks_bulkAdd multiple tracks in a single operation.| Parameter | Type | Description |
|---|---|---|
| tracks * | array |
pcb_add_viaAdd a via.| Parameter | Type | Description |
|---|---|---|
| diameter_mm | number | |
| drill_mm | number | |
| from_layer | string | |
| net_name | string | |
| to_layer | string | |
| via_type | string | |
| x_mm * | number | |
| y_mm * | number |
pcb_add_zoneAdd and refill a copper zone on one layer, outside an active transaction.| Parameter | Type | Description |
|---|---|---|
| clearance_mm | number | |
| corners * | any | |
| layer * | string | |
| min_width_mm | number | |
| name | string | |
| net_name * | string | |
| priority | integer | |
| thermal_bridge_width_mm | number | |
| thermal_gap_mm | number | |
| thermal_relief | boolean |
pcb_align_footprintsArrange selected footprints into a straight row or column.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| axis | string | |
| refs * | array | |
| spacing_mm | number |
pcb_apply_edit_groupApply up to 16 reviewed native PCB edits as one verified undo step.| Parameter | Type | Description |
|---|---|---|
| disposition | string | |
| operations * | any |
pcb_auto_place_by_schematicPlace PCB footprints from the current schematic using deterministic heuristics.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| grid_mm | number | |
| origin_x_mm | number | |
| origin_y_mm | number | |
| scale_x | number | |
| scale_y | number | |
| strategy | string | |
| sync_missing | boolean |
pcb_auto_place_force_directedRun a force-directed spring-embedder placement algorithm on a set of components.| Parameter | Type | Description |
|---|---|---|
| board_height_mm | number | Soft boundary height in mm (default 80). |
| board_width_mm | number | Soft boundary width in mm (default 100). |
| component_positions * | array | List of component dicts with keys: ref (str), x (float, mm), y (float, mm), w (float, mm, optional default 2), h (float, mm, optional default 2), fixed (bool, optional default false). |
| grid_mm | number | Final snap-to-grid spacing in mm (default 0.5). |
| iterations | integer | Number of spring-embedder iterations (default 300). |
| k_repel | number | Coulomb repulsion coefficient (default 80.0). |
| k_spring | number | Spring attraction coefficient (default 0.4). |
| keepout_regions | array | Optional rectangular keepouts as ``[[x_min, y_min, x_max, y_max], ...]`` in mm. |
| max_seconds | number | Opt-in wall-clock safety valve in seconds. 0 (default) keeps placement deterministic and convergence-bounded; a positive value caps runtime on pathologically large boards but makes the result depend on host speed (not reproducible). |
| nets * | array | List of net dicts with keys: name (str), refs (list[str]), weight (float, optional default 1.0). |
| seed | integer | Deterministic tie-break seed used for fallback searches. |
pcb_bga_fanoutGenerate a BGA fanout via-placement plan (dog-ear or inline strategy).| Parameter | Type | Description |
|---|---|---|
| balls * | array | List of ball dicts with keys: row (str, e.g. "A"), col (int, 1-based), net (str), x_mm (float, ball centre X), y_mm (float, ball centre Y). |
| escape_layer | string | Inner copper layer to fan out to (default "In1.Cu"). |
| pitch_mm * | number | Ball pitch in mm (e.g. 0.5, 0.65, 0.8, 1.0). |
| strategy | string | "dog_ear" (diagonal escape, most common) or "inline" (horizontal escape, for large pitch). |
| via_annular_mm | number | Via annular ring width in mm (default 0.1). |
| via_drill_mm | number | Via drill diameter in mm (default 0.2). |
pcb_block_create_from_selectionCapture a reusable PCB design block from selected footprint references.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| references * | array |
pcb_block_listList stored PCB design blocks created from selected footprints.pcb_block_placePlace a stored PCB design block by cloning its saved footprint blocks.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| block_name * | string | |
| rotation_deg | integer | |
| x_mm * | number | |
| y_mm * | number |
pcb_check_creepage_clearanceRun a heuristic creepage clearance review against pad spacing.| Parameter | Type | Description |
|---|---|---|
| material_group | integer | |
| pollution_degree | integer | |
| voltage_v * | number |
pcb_critique_placementAnalyse PCB component placement for common design-quality issues.| Parameter | Type | Description |
|---|---|---|
| analog_digital_separation_mm | number | |
| max_crystal_distance_mm | number | |
| max_decap_distance_mm | number | |
| max_smps_loop_area_mm2 | number |
pcb_delete_itemsDelete items by UUID.| Parameter | Type | Description |
|---|---|---|
| item_ids * | array |
pcb_delete_objectDelete a single PCB object by UUID through KiCad IPC.| Parameter | Type | Description |
|---|---|---|
| object_id * | string |
pcb_export_3d_pdfExport the PCB to a 3D PDF.| Parameter | Type | Description |
|---|---|---|
| output_path | string |
pcb_export_statsExport board statistics (net count, component count, layer count, etc.)| Parameter | Type | Description |
|---|---|---|
| output_name | string |
pcb_get_board_as_stringReturn the current board as a bounded S-expression string.pcb_get_board_summarySummarize the current board.pcb_get_design_rulesRead the active board design rules file when available.pcb_get_footprint_layersList every layer referenced by a footprint block, including inner layers.| Parameter | Type | Description |
|---|---|---|
| reference * | string |
pcb_get_footprintsList board footprints.| Parameter | Type | Description |
|---|---|---|
| filter_layer | string | |
| page | integer | |
| page_size | integer |
pcb_get_groupsList board groups (KiCad 10.0.0+).pcb_get_impedance_for_traceEstimate trace impedance for the supplied width on the named stackup layer.| Parameter | Type | Description |
|---|---|---|
| layer_name * | string | |
| width_mm * | number |
pcb_get_layersList enabled board layers.pcb_get_net_statisticsReturn statistical data about all nets in the active PCB.pcb_get_netsList all board nets.pcb_get_originGet the current board origin (drill origin) in millimeters.pcb_get_padsList board pads.pcb_get_ratsnestReport currently unconnected board items using the latest DRC view.pcb_get_selectionList currently selected items in the PCB editor.pcb_get_shapesList graphical board shapes.pcb_get_stackupShow the current stackup.pcb_get_tracksList board tracks.| Parameter | Type | Description |
|---|---|---|
| filter_layer | string | |
| filter_net | string | |
| page | integer | |
| page_size | integer |
pcb_get_viasList board vias.pcb_get_zonesList all board copper zones.pcb_group_by_functionCluster existing footprints into named functional groups.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| grid_mm | number | |
| group_spacing_mm | number | |
| groups * | object | |
| item_spacing_mm | number | |
| origin_x_mm | number | |
| origin_y_mm | number |
pcb_highlight_netAttempt to highlight a net in the GUI when supported.| Parameter | Type | Description |
|---|---|---|
| net_name * | string |
pcb_import_boardImport a non-KiCad PCB file to KiCad format.| Parameter | Type | Description |
|---|---|---|
| format | string | |
| input_file * | string | |
| output_file | string | |
| report_file | string | |
| report_format | string |
pcb_move_componentMove a component, preserving its angle unless rotation_deg is explicitly provided.| Parameter | Type | Description |
|---|---|---|
| reference * | string | |
| rotation_deg | number | |
| x_mm * | number | |
| y_mm * | number |
pcb_move_footprintMove by unique footprint reference or live UUID; preserve angle unless specified.| Parameter | Type | Description |
|---|---|---|
| reference * | string | |
| rotation_deg | number | |
| x_mm * | number | |
| y_mm * | number |
pcb_net_inspectorInspect every detail about a specific net in the PCB.| Parameter | Type | Description |
|---|---|---|
| net_name * | string |
pcb_place_componentPlace an already-synced PCB component at an absolute location.| Parameter | Type | Description |
|---|---|---|
| reference * | string | |
| rotation_deg | number | |
| x_mm * | number | |
| y_mm * | number |
pcb_place_decoupling_capsMove capacitor footprints into a tight row near a target IC footprint.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| cap_refs * | array | |
| grid_mm | number | |
| ic_ref * | string | |
| max_distance_mm | number | |
| side | string |
pcb_refill_zonesRefill all copper zones.pcb_route_traceLegacy single straight segment alias; no routing, collision avoidance, or DRC.| Parameter | Type | Description |
|---|---|---|
| layer | string | |
| net_name | string | |
| width_mm | number | |
| x1_mm * | number | |
| x2_mm * | number | |
| y1_mm * | number | |
| y2_mm * | number |
pcb_saveSave the active board.pcb_set_board_outlineDraw a rectangular board outline on Edge.Cuts.| Parameter | Type | Description |
|---|---|---|
| corner_radius_mm | number | |
| height_mm * | number | |
| origin_x_mm | number | |
| origin_y_mm | number | |
| width_mm * | number |
pcb_set_design_rulesWrite board-level manufacturing constraints into the active .kicad_dru file.| Parameter | Type | Description |
|---|---|---|
| min_annular_ring_mm | number | |
| min_clearance_mm | number | |
| min_hole_to_hole_mm | number | |
| min_trace_width_mm | number | |
| min_via_diameter_mm | number | |
| min_via_drill_mm | number |
pcb_set_footprint_layerFlip a footprint to F.Cu or B.Cu using KiCad 10.0.6+ native IPC.| Parameter | Type | Description |
|---|---|---|
| layer * | string | |
| reference * | string |
pcb_set_keepout_zoneAdd a rectangular PCB keepout / rule area to the active board.| Parameter | Type | Description |
|---|---|---|
| h_mm * | number | |
| name | string | |
| rules | array | |
| w_mm * | number | |
| x_mm * | number | |
| y_mm * | number |
pcb_set_net_classAssign a net class when the runtime supports it.| Parameter | Type | Description |
|---|---|---|
| class_name * | string | |
| net_name * | string |
pcb_set_originSet the board origin (drill origin) in millimeters.| Parameter | Type | Description |
|---|---|---|
| x_mm * | number | X coordinate in millimeters. |
| y_mm * | number | Y coordinate in millimeters. |
pcb_set_stackupSet the active board stackup using a file-backed profile.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| keepout_layer_intents | any | |
| layers * | array |
pcb_set_title_block_infoSet board title block information (KiCad 10.0.1+).| Parameter | Type | Description |
|---|---|---|
| comment1 | string | Custom comment field 1. |
| comment2 | string | Custom comment field 2. |
| comment3 | string | Custom comment field 3. |
| comment4 | string | Custom comment field 4. |
| company | string | Company name. |
| date | string | Board date. |
| revision | string | Board revision. |
| title | string | Board title. |
pcb_sync_from_schematicSync missing PCB footprints from schematic footprint assignments.| Parameter | Type | Description |
|---|---|---|
| allow_open_board | boolean | |
| auto_place | boolean | |
| force | boolean | |
| grid_mm | number | |
| origin_x_mm | number | |
| origin_y_mm | number | |
| replace_mismatched | boolean | |
| scale_x | number | |
| scale_y | number | |
| update_pad_nets | boolean | |
| use_net_names | boolean |
pcb_visual_qaHeadless PCB readability QA: off-board parts, silk and body overlap.Security checks
6 checks have not been run yet.