easyeda-pro-mcp

v1.4.1
@vlabsoftware/easyeda-pro-mcp Checked 2 days ago Published 1 month ago

Independent open-source MCP server and EasyEDA Pro extension bridge for live PCB project assistance.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

easyeda_live_status EasyEDA Pro live status

Checks whether the EasyEDA Pro extension is connected and reports active document/capability information.

easyeda_doctor EasyEDA Pro bridge diagnostics

Returns a structured diagnosis of the local MCP bridge, EasyEDA Pro extension connection state, protocol compatibility, active document context, and suggested next steps.

easyeda_get_context Get EasyEDA Pro editor context

Summarizes active project, active document, selection, and editor context from the open EasyEDA Pro instance.

ParameterTypeDescription
timeoutMsinteger

easyeda_get_selection Get current canvas selection

Returns components, pins, or primitives currently selected by the user on the active schematic or PCB canvas.

ParameterTypeDescription
timeoutMsinteger

easyeda_find_component Find EasyEDA Pro component

Finds a component by designator, name, value, footprint, or property in the active EasyEDA Pro project.

ParameterTypeDescription
query *stringDesignator, value, name, footprint, or property text to search for.
limitinteger
timeoutMsinteger

easyeda_find_net Find EasyEDA Pro net

Finds a net by name and returns available connections or metadata from the active project.

ParameterTypeDescription
query *stringNet name or partial net name to search for.
limitinteger
timeoutMsinteger

easyeda_schematic_snapshot Get EasyEDA Pro schematic snapshot

Returns components, pins, nets, wires, labels and provenance. Single-page reads attempt native Protel2 netlist membership and explicitly report geometric fallback.

ParameterTypeDescription
allPagesbooleanCollect all schematic pages when EasyEDA Pro exposes them.
includeRawbooleanInclude compact raw EasyEDA API data for fallback reasoning. Defaults to false to minimize token consumption.
timeoutMsinteger

easyeda_get_schematic_nets Get Schematic Native Nets

Queries native schematic nets from EasyEDA Pro per-sheet or project-wide. Distinguishes native net connectivity from geometric inferences.

ParameterTypeDescription
allPagesbooleanQuery across all schematic sheets.
includeRawbooleanInclude raw EasyEDA net data in the result.
pageIdstringFilter by schematic sheet/page ID.
pageIndexintegerFilter by schematic sheet/page index.
targetobjectExpected active schematic target.
timeoutMsinteger

easyeda_list_schematic_components List schematic components

Lists normalized schematic components with designator, value/name, footprint, position, and key properties.

ParameterTypeDescription
allPagesboolean
includeRawboolean
limitinteger
querystringOptional text filter against component fields.
timeoutMsinteger

easyeda_get_component_pins Get schematic component pins

Returns all known pins for a schematic component, including pin number, pin name, position, and net when available.

ParameterTypeDescription
query *stringComponent designator or text query, such as U1, USB1, or regulator part number.
allPagesboolean
includeRawboolean
timeoutMsinteger

easyeda_trace_net Trace EasyEDA Pro net

Traces net topology, connected pins, wire primitive counts, and connectivity evidence across schematic sheets.

ParameterTypeDescription
net *stringNet name to trace (e.g. GND, VCC, +3V3, NET_1).
allPagesboolean
includeRawboolean
timeoutMsinteger

easyeda_trace_component Trace EasyEDA Pro component connections

Traces component pins, connected nets, adjacent components, and confidence ratings for schematic debugging.

ParameterTypeDescription
query *stringComponent designator or search query to trace (e.g. U1, R1, C3).
allPagesboolean
includeRawboolean
timeoutMsinteger

easyeda_find_unconnected_pins Find unconnected pins

Scans active schematic sheets for unconnected component pins, reporting potential schematic omissions or dangling inputs.

ParameterTypeDescription
allPagesboolean
includeRawboolean
limitinteger
querystringOptional component designator filter.
timeoutMsinteger

easyeda_run_schematic_erc Run Schematic Electrical Rules Check (ERC)

Executes native EasyEDA Pro schematic Electrical Rules Check (ERC) on the active document, reporting rule violations, unconnected pins, and design errors.

ParameterTypeDescription
strictbooleanEnforce strict electrical rule checking.
targetobjectExpected active schematic target.
timeoutMsinteger

easyeda_validate_schematic_area Validate schematic area

Evaluates essential circuit patterns around a focus component or region, including power, ground, decoupling, pull-ups, and floating pin rules.

ParameterTypeDescription
focusComponent *stringCenter component designator (e.g. U1, ESP32, STM32).
allPagesboolean
expectedGroundNetsarrayAllowed ground net names (defaults to GND/VSS nets).
expectedPowerNetsarrayAllowed power net names (defaults to common VCC/VDD nets).
includeRawboolean
maxHopsinteger
timeoutMsinteger

easyeda_verify_connections Verify schematic connections

Runs generic read-only connection assertions against the active schematic, including pin/net checks and passive paths through resistors, capacitors, inductors, diodes, or LEDs.

ParameterTypeDescription
checks *arrayStructured connection assertions to verify against the active schematic.
allPagesboolean
includeRawboolean
maxHopsinteger
timeoutMsinteger

easyeda_get_schematic_ports_buses Get schematic ports and buses

Inspects net ports (hierarchical/global sheet connectors), multi-bit buses, and bus entry taps in the active schematic with connection validation and signal range diagnostics.

ParameterTypeDescription
includeBusEntriesbooleanWhether to include bus entry taps
includeBusesbooleanWhether to include multi-bit buses
includePortsbooleanWhether to include net ports
includeRawbooleanWhether to include raw primitive records from the editor
targetobjectExpected active schematic target to guard against document drift
timeoutMsinteger

easyeda_compare_schematic_pcb Compare schematic and PCB

Performs cross-domain discrepancy analysis between Schematic and PCB in EasyEDA Pro. Detects unplaced components, untracked PCB parts, footprint mismatches, pin/pad count discrepancies, unrouted nets, and overall synchronicity score.

ParameterTypeDescription
pcbTargetobjectExpected PCB document target
schematicTargetobjectExpected schematic document target
timeoutMsinteger

easyeda_run_drc Run PCB Design Rule Check (DRC)

Executes the native EasyEDA Pro PCB Design Rule Check (DRC) on the active board and reports detailed violations, categorized counts, evidence, document target, and execution comparison.

ParameterTypeDescription
compareWithEditorbooleanCompare execution results against editor-side DRC error state if available.
limitintegerMaximum number of detailed violation records to return.
rulestringOptional rule name or code filter (e.g. Clearance, ShortCircuit, UnroutedNet).
severitystringFilter reported violations by severity level ('all', 'error', or 'warning').
strictbooleanEnforce strict design rule checking.
targetobjectExpected document target to assert execution on the intended PCB document.
timeoutMsinteger

easyeda_get_pcb_layers Get PCB Layer Stackup

Returns the layer stackup and configuration of the active EasyEDA Pro PCB, including signal/copper layers, mechanical layers, colors, and visibility.

ParameterTypeDescription
timeoutMsinteger

easyeda_get_routing_status Get PCB Routing Status

Analyzes the PCB routing status, total nets, completion percentage, unrouted net connections (ratsnest), and optional net lengths.

ParameterTypeDescription
includeNetLengthsbooleanInclude calculated track length for each net.
timeoutMsinteger

easyeda_list_pcb_components List PCB components

Lists normalized PCB components with designator, footprint, placement layer, coordinates, and rotation angle.

ParameterTypeDescription
includePadsbooleanInclude normalized pad details for each component.
includePropertiesbooleanInclude custom properties and attributes.
includeRawboolean
layerstringFilter components by placement layer.
limitinteger
querystringOptional text filter against component designator, footprint, or value.
targetobjectExpected active PCB target.
timeoutMsinteger

easyeda_get_pcb_pads Get PCB pads and pin connections

Inspects PCB pads (both component footprint pins and free pads) with net connections, layers, drill sizes, shapes, and coordinates.

ParameterTypeDescription
componentstringFilter pads by parent component designator (e.g. 'U1') or primitive ID.
includeComponentPadsbooleanInclude pads belonging to footprint components.
includeRawboolean
includeStandalonePadsbooleanInclude standalone / free canvas pads.
layerstringFilter pads by layer or multi-layer through-hole.
limitinteger
netstringFilter pads by assigned net name (e.g. 'GND', 'VCC').
padNumberstringFilter pads by specific pin/pad number (e.g. '1', 'A1').
targetobjectExpected active PCB target.
timeoutMsinteger

easyeda_prepare_pcb_component Prepare PCB Component Transform

Prepares a component transformation on the PCB (move, rotate, flip, or delete) with preview, scope, expected coordinates, and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
action *stringPCB component transform action to perform
component *stringTarget component designator (e.g. 'U1', 'R3') or primitive ID
dRotationnumberRelative rotation angle increment in degrees (for rotate)
dxnumberRelative X delta offset in mm (for move)
dynumberRelative Y delta offset in mm (for move)
layerstringExplicit target layer/side for flip
rotationnumberAbsolute rotation angle in degrees (for rotate)
targetobjectExpected active PCB target
timeoutMsinteger
xnumberAbsolute X target coordinate in mm (for move)
ynumberAbsolute Y target coordinate in mm (for move)

easyeda_get_board_outline Inspect PCB Board Outline

Inspects the board outline boundary, bounding box (minX, minY, maxX, maxY, width, height), perimeter, estimated area, loop closure status, and segments on the active PCB.

ParameterTypeDescription
includeRawbooleanInclude raw primitive payloads.
includeSegmentsbooleanInclude individual segment coordinates and primitives.
targetobjectExpected active PCB target.
timeoutMsinteger

easyeda_prepare_board_outline Prepare Board Outline Mutation

Prepares creation, rectangular/polygonal sizing, clearing, or segment modification of the board outline on the active PCB. Returns a mutationId and exact confirmation phrase required for execution via easyeda_confirmed_action.

ParameterTypeDescription
actionstringBoard outline mutation action to perform.
clearExistingbooleanWhether to delete existing board outline primitives before creating new ones.
endXnumberNew end X coordinate in mm (for modify_segment).
endYnumberNew end Y coordinate in mm (for modify_segment).
heightnumberBoard height in mm (for set_rectangle / create).
lineWidthnumberOutline track line width in mm (default: 0.2).
pointsarrayArray of vertex coordinates in mm for polygonal outline (for set_polygon).
primitiveIdstringTarget segment primitive ID (for modify_segment).
startXnumberNew start X coordinate in mm (for modify_segment).
startYnumberNew start Y coordinate in mm (for modify_segment).
targetobjectExpected active PCB target.
timeoutMsinteger
widthnumberBoard width in mm (for set_rectangle / create).
xnumberOrigin X coordinate in mm (for set_rectangle / create).
ynumberOrigin Y coordinate in mm (for set_rectangle / create).

easyeda_prepare_pcb_routing Prepare PCB Auto-routing or Unrouting

Prepares native auto-routing or destructive unrouting of tracks/vias on the active PCB canvas with explicit nets scope, safety preview, and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
action *stringRouting operation: autoroute to route traces, or unroute to destructively clear tracks/vias.
ignoreNetsarrayArray of net names to exclude from autorouting.
keepExistingRoutesbooleanWhether to preserve existing tracks during autorouting.
netsarrayExplicit array of net names to target (e.g. ['GND', 'VCC']). If omitted, targets all nets.
targetobjectExpected active PCB target.
timeoutMsinteger

easyeda_prepare_pcb_layout Prepare PCB Auto-layout

Prepares native component auto-placement/auto-layout on the active PCB canvas within the board outline with safety preview and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
actionstringLayout operation to perform.
componentsarrayExplicit array of component designators to arrange (e.g. ['U1', 'R1']). If omitted, arranges all unlocked components.
targetobjectExpected active PCB target.
timeoutMsinteger

easyeda_get_pcb_tracks Get PCB tracks

Lists and inspects copper tracks and traces on the active PCB layout with net, layer, geometry coordinates, width, and calculated length.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
layerstring | numberOptional filter by layer name or layer ID (e.g. 1, 'TopLayer', 2, 'BottomLayer').
limitintegerMaximum number of tracks to return.
netstringOptional filter by net name (e.g. 'GND', 'VCC').
primitiveIdstringOptional filter by track primitive ID.
targetobject
timeoutMsinteger

easyeda_get_pcb_vias Get PCB vias

Lists and inspects vias on the active PCB layout with net, center coordinates (x, y in mm), outer diameter, hole/drill diameter, and layers.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
limitintegerMaximum number of vias to return.
netstringOptional filter by net name (e.g. 'GND', 'VCC').
primitiveIdstringOptional filter by via primitive ID.
targetobject
timeoutMsinteger

easyeda_prepare_pcb_track_via Prepare PCB track or via mutation

Prepares creating, modifying, or destructively deleting copper tracks and vias on the active PCB canvas with safety preview and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
action *stringAction: 'create', 'modify', or 'delete'.
entity *stringEntity type to mutate: 'track' or 'via'.
diameternumberVia outer diameter in mm (default: 0.6).
endXnumberEnd X coordinate in mm (for track creation).
endYnumberEnd Y coordinate in mm (for track creation).
holeDiameternumberVia drill hole diameter in mm (default: 0.3).
layerstring | numberPlacement layer for created track (default: 1 / TopLayer).
lineWidthnumberTrack line width in mm (default: 0.254).
netstringNet name for created track or via (e.g. 'GND', 'VCC').
propertiesobjectProperty modifications dictionary (for track/via modification).
startXnumberStart X coordinate in mm (for track creation).
startYnumberStart Y coordinate in mm (for track creation).
targetobjectExpected active PCB target.
timeoutMsinteger
trackIdstringPrimitive ID of track to modify or delete.
viaIdstringPrimitive ID of via to modify or delete.
xnumberCenter X coordinate in mm (for via creation).
ynumberCenter Y coordinate in mm (for via creation).

easyeda_highlight_net Highlight or clear PCB net

Visually highlights a specified net on the EasyEDA Pro PCB canvas, or clears all highlighted nets.

ParameterTypeDescription
clearbooleanWhen true, unhighlights all nets.
netstringNet name to highlight (e.g., 'GND', 'VCC_5V').
timeoutMsinteger

easyeda_get_copper_zones Get PCB copper zones

Lists and inspects copper zones (copper pours/areas) on the active PCB layout with net, layer, clearance, fillType, vertices, and bounding box.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
layerstring | numberOptional filter by layer name or layer ID (e.g. 1, 'TopLayer', 2, 'BottomLayer').
limitintegerMaximum number of copper zones to return.
netstringOptional filter by net name (e.g. 'GND', 'VCC').
primitiveIdstringOptional filter by copper zone primitive ID.
targetobject
timeoutMsinteger

easyeda_get_keepouts Get PCB keepouts

Lists and inspects keepout areas on the active PCB layout with layer, keepoutType, vertices, and bounding box.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
layerstring | numberOptional filter by layer name or layer ID (e.g. 1, 'TopLayer', 2, 'BottomLayer', or 'AllLayers').
limitintegerMaximum number of keepouts to return.
primitiveIdstringOptional filter by keepout primitive ID.
targetobject
timeoutMsinteger

easyeda_prepare_copper_keepout Prepare PCB copper zone or keepout mutation

Prepares creating, modifying, deleting, or recalculating/rebuilding copper zones and keepouts on the active PCB canvas with safety preview and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
action *stringAction: 'create', 'modify', 'delete', or 'rebuild' (rebuild applies to copperZone).
entity *stringEntity type to mutate: 'copperZone' or 'keepout'.
clearancenumberClearance spacing in mm (for copper zones).
fillTypestringFill style for copper zones: 'solid', 'grid', or 'none'.
heightnumberShortcut height in mm for rectangular area.
keepoutIdstringPrimitive ID of keepout to modify or delete.
keepoutTypestringKeepout restriction type: 'all', 'track', 'via', 'copper', etc.
layerstring | numberPlacement layer (default: 1 / TopLayer).
netstringNet name for copper zone creation (e.g. 'GND', 'VCC').
pointsarrayArray of boundary vertices ({ x, y } in mm). Minimum 3 vertices.
propertiesobjectProperty modifications dictionary (for modify action).
targetobjectExpected active PCB target.
timeoutMsinteger
widthnumberShortcut width in mm for rectangular area.
xnumberShortcut start X coordinate in mm for rectangular area.
ynumberShortcut start Y coordinate in mm for rectangular area.
zoneIdstringPrimitive ID of copper zone to modify, delete, or rebuild.

easyeda_get_pcb_airwires Get PCB airwires and ratsnest connections

Inspects unrouted ratsnest airwire lines on the active PCB layout with endpoints, coordinates, lengths, and inference method/tolerances.

ParameterTypeDescription
limitintegerMaximum number of airwires to return.
netstringOptional filter by net name (e.g. 'GND', 'VCC').
padSnapTolerancenumberPad snap tolerance in mm (default: 0.1).
targetobject
timeoutMsinteger

easyeda_get_pcb_placement_report Get PCB component placement and collision report

Generates a comprehensive component placement report including density, bounding boxes, layer distribution, and collision/clearance warnings.

ParameterTypeDescription
boardMarginTolerancenumberTolerance in mm beyond board outline before considering component unplaced (default: 1.0).
collisionTolerancenumberClearance margin in mm to flag tight spacing or collision warnings (default: 0.2).
targetobject
timeoutMsinteger

easyeda_get_pcb_net_report Get PCB net and routing completion report

Generates detailed physical metrics for nets on the active PCB (pad counts, track length, via count, copper zone coverage, and completion percentage).

ParameterTypeDescription
categorystringFilter nets by electrical category.
limitintegerMaximum number of nets to return.
netstringOptional filter by specific net name.
statusstringFilter nets by routing status.
targetobject
timeoutMsinteger

easyeda_get_pcb_net_classes Get PCB net classes

Lists net classes and their member net assignments, routing rules (trace width, clearance, via size) on the active PCB.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
namestringOptional filter by specific net class name.
targetobject
timeoutMsinteger

easyeda_get_pcb_differential_pairs Get PCB differential pairs

Lists differential pairs with positive and negative net assignments, target impedance, trace width, gap, actual routed track lengths, and skew tolerance compliance.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
namestringOptional filter by specific differential pair name.
targetobject
timeoutMsinteger
toleranceMmnumberLength matching skew tolerance in mm (default: 0.15).

easyeda_get_pcb_length_groups Get PCB equal length groups

Lists equal length matching groups with member net lengths, reference length, max skew, and tolerance compliance.

ParameterTypeDescription
includeRawbooleanInclude raw underlying primitive data.
namestringOptional filter by specific length group name.
targetobject
timeoutMsinteger
toleranceMmnumberLength matching tolerance in mm (default: 0.5).

easyeda_prepare_pcb_net_constraint Prepare PCB net constraint mutation

Prepares creating, modifying, or deleting net classes, differential pairs, or equal length groups with safety preview, API capability check, and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
action *stringAction: 'create', 'modify', or 'delete'.
entity *stringEntity type to mutate: 'netClass', 'differentialPair', or 'lengthGroup'.
name *stringName of the net class, differential pair, or length group.
clearancenumberIsolation clearance in mm (for netClass).
differentialGapnumberDifferential pair spacing/gap in mm.
negativeNetstringNegative net name for differential pair.
netsarrayMember net names (for netClass or lengthGroup).
positiveNetstringPositive net name for differential pair.
propertiesobjectProperty modifications dictionary (for modify action).
targetobjectExpected active PCB target.
targetImpedancenumberTarget differential impedance in Ohms (e.g. 90, 100).
targetLengthMmnumberTarget length in mm for length group.
timeoutMsinteger
toleranceMmnumberLength matching skew tolerance in mm.
traceWidthnumberTrace width in mm.
viaDiameternumberVia outer diameter in mm (for netClass).
viaHoleDiameternumberVia drill hole diameter in mm (for netClass).

easyeda_get_pcb_3d_inspection Inspect PCB 3D models and vertical clearance

Inspects 3D models, vertical board envelope (substrate thickness, top/bottom max heights, total enclosure clearance), missing STEP/OBJ models ranked by criticality, and 3D spatial interference collisions between components on the active PCB.

ParameterTypeDescription
checkInterferencebooleanCheck 3D spatial bounding box collisions between components.
enclosureHeightMmnumberInternal enclosure height available in mm to evaluate fit/tight/exceeded status.
maxHeightMmnumberMaximum allowed vertical component height in mm for clearance check.
targetobject
timeoutMsinteger

easyeda_get_pcb_3d_view Get PCB 3D view and rendering status

Retrieves 3D camera angles, rendering layer visibility, STEP/OBJ 3D export support, and shortcuts to open the native 3D WebGL viewport.

ParameterTypeDescription
targetobject
timeoutMsinteger
viewAnglestringCamera angle preset for 3D inspection.

easyeda_prepare_pcb_external_import Prepare PCB external layout or routing import

Validates and stages external layout or routing files (Specctra SES, EasyEDA router JSON, EasyEDA layout JSON, DXF) with geometry validation, safety preview, and exact confirmation phrase. Does not modify the PCB until confirmed.

ParameterTypeDescription
format *stringExternal format to parse and import.
contentstringInline text or JSON content of the external file.
defaultNetstringDefault net name for imported routing traces.
dryRunOnlybooleanIf true, validates and parses geometry without staging a mutation.
filePathstringAbsolute or relative path to local external file to import.
layerMappingobjectDictionary mapping external layer identifiers to EasyEDA layer IDs/names.
netMappingobjectDictionary mapping external net names to project net names.
targetobjectExpected active PCB target.
targetLayernumber | stringDefault or target PCB layer for imported geometries (default: 1 for Top, 10 for BoardOutline/DXF).
timeoutMsinteger

easyeda_get_drc_rules Read native PCB design rules

Read native EasyEDA Pro PCB design rules for current or configured scopes. Does not mutate the board.

ParameterTypeDescription
scopestring
timeoutMsinteger

easyeda_prepare_drc_edit Prepare a PCB design rule edit

Prepare an explicit, reviewable edit for native EasyEDA Pro PCB design rules. Returns target identity, baseline snapshot, editId and the exact required confirmation string.

ParameterTypeDescription
operation *
timeoutMsinteger

easyeda_get_drc_edit_result Query a PCB design rule edit

Query a retained DRC edit after execution or timeout. Never reapply an uncertain edit. Results live only in this extension instance.

ParameterTypeDescription
editId *string
timeoutMsinteger

easyeda_navigate_component Navigate to EasyEDA Pro component

Navigates/highlights a component in the EasyEDA Pro editor when the extension can locate it.

ParameterTypeDescription
query *stringComponent designator or search query.
timeoutMsinteger

easyeda_navigate_region Navigate to EasyEDA Pro region

Navigates to coordinates or a rectangular region in the active EasyEDA Pro PCB/document.

ParameterTypeDescription
bottomnumber
leftnumber
rightnumber
timeoutMsinteger
topnumber
xnumber
ynumber

easyeda_zoom_board Zoom EasyEDA Pro board outline

Zooms the active PCB editor to the board outline.

ParameterTypeDescription
timeoutMsinteger

easyeda_export_bom Export EasyEDA Pro BOM

Exports a BOM from the active EasyEDA Pro project through the extension.

ParameterTypeDescription
fileNamestring
formatstring
scopestring
timeoutMsinteger

easyeda_export_netlist Export EasyEDA Pro netlist

Exports a netlist from the active EasyEDA Pro schematic or PCB through the extension.

ParameterTypeDescription
fileNamestring
scopestring
timeoutMsinteger

easyeda_export_gerber Export EasyEDA Pro Gerber

Exports Gerber fabrication files from the active EasyEDA Pro PCB through the extension.

ParameterTypeDescription
fileNamestring
timeoutMsinteger

easyeda_export_pdf Export EasyEDA Pro PDF

Exports a PDF from the active EasyEDA Pro document through the extension.

ParameterTypeDescription
fileNamestring
scopestring
timeoutMsinteger

easyeda_export_cpl Export PCB Component Pick and Place (CPL)

Exports the Pick and Place / Centroid (CPL) file from the active EasyEDA Pro PCB for SMT assembly (e.g. JLCPCB).

ParameterTypeDescription
destinationPathstringOptional destination directory / target path.
fileNamestringOptional output file name without extension.
formatstringFile format for the pick and place report.
timeoutMsinteger
unitstringCoordinate unit for component positions.

easyeda_export_image Export schematic or PCB canvas image

Exports a high-resolution visual rendering or vector graphic (PNG, SVG, JPG) of the active schematic sheet or PCB layer stack with transparent background, resolution scaling, and layer visibility options.

ParameterTypeDescription
destinationPathstringOptional destination directory / target path.
dpiintegerResolution in dots-per-inch (raster formats).
fileNamestringOptional output file name without extension.
formatstringImage format (png, svg, jpg).
layersarraySpecific PCB layers to include (e.g. ['TopLayer', 'TopSilkLayer']).
scopestringScope of document to export.
themestringVisual theme for rendering.
timeoutMsinteger
transparentBackgroundbooleanWhether to use transparent background.

easyeda_export_3d_model Export PCB 3D mechanical CAD model

Exports 3D mechanical CAD geometry (STEP, OBJ, STL, WRL) of the board and mounted component bodies for MCAD integration, 3D printing, and thermal/clearance analysis.

ParameterTypeDescription
destinationPathstringOptional destination directory / target path.
fileNamestringOptional output file name without extension.
formatstring3D CAD geometry format (step, obj, stl, wrl).
includeComponents3DbooleanInclude 3D component body models.
includeCopperbooleanInclude copper layers in 3D geometry.
includeSilkscreenbooleanInclude silkscreen legends in 3D geometry.
qualitystringTessellation/mesh export quality.
timeoutMsinteger

easyeda_export_project_archive Export complete EasyEDA Pro project archive

Exports the entire EasyEDA Pro project archive (epro, zip, json) containing all schematic sheets, PCB layout, layer configurations, netlists, and project metadata with integrity validation.

ParameterTypeDescription
destinationPathstringOptional destination directory / target path.
fileNamestringOptional output file name without extension.
formatstringArchive bundle format (epro, zip, json).
includeHistorybooleanInclude revision and change history.
includeLibrariesbooleanBundle custom library symbols and footprints.
timeoutMsinteger

easyeda_export_dxf Export 2D CAD DXF drawing

Exports 2D CAD DXF drawings of PCB outlines, copper traces, drilling holes, or schematic drawings for mechanical enclosures, CNC routing, laser cutting, and AutoCAD integration.

ParameterTypeDescription
destinationPathstringOptional destination directory / target path.
dxfVersionstringAutoCAD DXF format version.
fileNamestringOptional output file name without extension.
layersarraySpecific layers to include in DXF export.
scopestringExport scope (pcb or schematic).
timeoutMsinteger
unitstringCAD drawing unit.

easyeda_search_library Search component library

Searches the EasyEDA / LCSC component catalog by keyword, LCSC part number (e.g. C1523), or manufacturer part number.

ParameterTypeDescription
query *stringKeyword, part number, or LCSC part code (e.g., 'C1523', 'ESP32', '0402 10k').
limitinteger
timeoutMsinteger

easyeda_get_device_details Get device, symbol, and footprint details

Fetches complete device definition, schematic symbol pinout, PCB footprint pad geometry, and pin-to-pad correspondence mapping by device UUID, LCSC part code (e.g. C1523), or placed component designator (e.g. U1).

ParameterTypeDescription
designatorstringPlaced component designator in active schematic/PCB (e.g. 'U1', 'R2').
deviceUuidstringLibrary device UUID.
includePinPadMapbooleanWhether to include the pin-to-pad correspondence mapping.
includeRawbooleanInclude raw underlying primitive data.
lcscCodestringLCSC component code (e.g. 'C1523').
targetobject
timeoutMsinteger

easyeda_compare_devices Compare two devices for pinout and footprint compatibility

Compares two component devices (by UUID, LCSC code, or designator) evaluating pinout matching, footprint geometry, JLCPCB stock availability, and drop-in replacement feasibility.

ParameterTypeDescription
deviceA *stringFirst device UUID, LCSC part number (e.g. 'C1523'), or component designator (e.g. 'U1').
deviceB *stringSecond device UUID, LCSC part number (e.g. 'C2040'), or component designator (e.g. 'U2').
strictPinoutbooleanStrictly compare pin electrical types in addition to pin names.
targetobject
timeoutMsinteger

easyeda_verify_pin_pad_mapping Verify symbol pin to footprint pad correspondence

Validates 1-to-1 correspondence between schematic symbol pins and PCB footprint pads across all components on active canvas or for a specific component. Identifies unmapped pins, unmapped pads, and potential netlist connectivity breaks.

ParameterTypeDescription
designatorstringOptional component designator to inspect (e.g. 'U1'). If omitted, verifies all components on active canvas.
deviceUuidstringOptional library device UUID to verify.
targetobject
timeoutMsinteger

easyeda_list_documents List EasyEDA Pro Documents

Lists all documents belonging to the current EasyEDA Pro project and open editor tabs, detailing document identity, type, open/active status, and tab layout.

ParameterTypeDescription
timeoutMsinteger

easyeda_open_document Open EasyEDA Pro Document

Opens a document or activates an open tab in EasyEDA Pro, shifting input focus and canvas viewport. Provides readback confirmation and reports focus transition.

ParameterTypeDescription
activatebooleanWhether to bring focus and activate the tab
documentIdstringDocument UUID to open
splitScreenIdstringOptional split screen ID to open document into
tabIdstringTab ID to activate if already open
targetobjectExpected target document identity
timeoutMsinteger

easyeda_render_document_view Render EasyEDA Pro Document View

Captures the visible canvas rendering viewport image in EasyEDA Pro (via DMT_EditorControl). Explicitly documents viewport limits and asserts target match.

ParameterTypeDescription
formatstringImage encoding format
tabIdstringTarget tab ID if capturing a specific open tab
targetobjectExpected document target to guard against capturing wrong canvas
timeoutMsinteger

easyeda_prepare_schematic_component Prepare Schematic Component Mutation

Prepares a create, move, update, or delete operation on a schematic component with full preview, ID/designator resolution, and exact confirmation phrase. Does not modify the schematic until confirmed via easyeda_confirmed_action.

ParameterTypeDescription
action *stringComponent mutation action to perform
addIntoBombooleanWhether to include in BOM
addIntoPcbbooleanWhether to forward to PCB
componentstringPrimitive ID or designator (e.g. 'R1', 'U2') for move, update, or delete
designatorstringDesignator to assign or update (e.g. 'R10')
deviceDevice name, LCSC code, or device query to create (e.g. '10k 0603', 'C1523', 'ESP32')
dxnumberRelative delta X for move
dynumberRelative delta Y for move
footprintstringFootprint package name (e.g. '0603', 'SOIC-8')
mirrorbooleanMirror state
propertiesobjectKey-value properties to update (designator, value, footprint, rotation, mirror, etc.)
rotationnumberRotation angle in degrees (0, 90, 180, 270)
subPartNamestringSub-part name for multi-part components
targetobjectExpected active schematic target to guard against drift
timeoutMsinteger
valuestringComponent value (e.g. '10k', '100nF')
xnumberX coordinate for placement or absolute move
ynumberY coordinate for placement or absolute move

easyeda_prepare_schematic_wire Prepare Schematic Wire Mutation

Prepares a wire creation, modification, deletion, or net label placement operation in EasyEDA Pro with preview, coordinate validation, affected connections check, and exact confirmation phrase. Does not write until confirmed.

ParameterTypeDescription
action *stringWire mutation action to perform
colorstringWire color string
coordinatesarrayFlat array of polyline coordinates [x1, y1, x2, y2, ...] (minimum 2 points)
flagTypestringFlag type for net flag (Power, Ground, NetPort)
kindstringKind of net label (label or power/ground flag)
lineWidthnumberWire line width
netstringNet name for wire or net label
rotationnumberRotation angle for net label or flag
targetobjectExpected active schematic target
timeoutMsinteger
wireIdstringTarget wire ID for modify or delete
xnumberX coordinate for net label
ynumberY coordinate for net label

easyeda_prepare_schematic_port Prepare Schematic Port Mutation

Prepares a create, modify, or delete operation on a schematic net port (hierarchical/sheet connector) with preview, validation, and exact confirmation phrase. Does not write until confirmed via easyeda_confirmed_action.

ParameterTypeDescription
action *stringPort action to perform
colorstringPort color string
namestringNet name for the port (e.g. 'TXD', 'CLK')
portIdstringTarget port primitiveId for modify or delete
portTypestringPort direction / type
rotationnumberRotation angle in degrees (0, 90, 180, 270)
targetobjectExpected active schematic target
timeoutMsinteger
xnumberX coordinate for port placement
ynumberY coordinate for port placement

easyeda_prepare_schematic_bus Prepare Schematic Bus Mutation

Prepares a create, modify, or delete operation on schematic multi-bit buses or diagonal bus entries with syntax parsing, coordinate validation, preview, and exact confirmation phrase. Does not write until confirmed via easyeda_confirmed_action.

ParameterTypeDescription
action *stringBus or bus entry action to perform
busIdstringTarget bus primitive ID for modify, delete, or attaching bus entry
colorstringBus color string
coordinatesarrayFlat array of coordinates [x1, y1, x2, y2, ...] for bus polyline (min 4 numbers / 2 points)
endXnumberEnd X for bus entry tap
endYnumberEnd Y for bus entry tap
entryIdstringTarget bus entry primitive ID for delete
lineWidthnumberBus stroke width
namestringBus name with syntax, e.g. 'DATA[0..7]' or 'ADDR[15:0]'
netstringNet name for tapped signal (e.g. 'DATA0')
rotationnumberRotation angle for bus entry
startXnumberStart X for bus entry tap
startYnumberStart Y for bus entry tap
targetobjectExpected active schematic target
timeoutMsinteger
wireIdstringPrimitive ID of wire connected by bus entry

easyeda_prepare_schematic_pcb_sync Prepare Schematic-PCB Synchronization

Prepares a synchronization or board creation mutation between Schematic and PCB in EasyEDA Pro ('syncToPcb', 'syncToSchematic', 'createPcbFromSchematic') with cross-domain discrepancy preview and exact confirmation phrase. Does not write until confirmed via easyeda_confirmed_action.

ParameterTypeDescription
action *stringSynchronization or board creation action to perform
boardNamestringName for newly created PCB document (for createPcbFromSchematic)
heightnumberBoard outline height in mm (default: 80)
layerCountintegerCopper layer count for created PCB board (default: 2)
pcbTargetobjectExpected PCB document target
schematicTargetobjectExpected schematic document target
timeoutMsinteger
widthnumberBoard outline width in mm (default: 100)

easyeda_get_mutation_result Get Mutation Result

Queries the status, readback evidence, and verification of any prepared or applied mutation by mutationId. Safe and read-only; never automatically replays a mutation.

ParameterTypeDescription
mutationId *stringThe mutationId returned during preparation
timeoutMsinteger

easyeda_confirmed_action Confirmed EasyEDA Pro action

Runs a mutating EasyEDA Pro action after human approval. For editDrcRules pass params:{editId} and the exact prepared confirmation. Saving the PCB remains separate.

ParameterTypeDescription
action *string
confirmation *stringDRC: exact CONFIRM editDrcRules <editId> after human review. Mutation: exact CONFIRM <domain>:<action> <mutationId>. Legacy actions require an explicit confirmation phrase.
paramsobject
timeoutMsinteger

easyeda_evaluate_spice_support Evaluate SPICE simulation feasibility and readiness

Performs feasibility evaluation of analog SPICE simulation on the active schematic: audits component SPICE model availability, verifies Node 0 / GND reference, checks stimulus sources, and documents engine limits and platform boundaries.

ParameterTypeDescription
groundNetstringNet name expected as ground datum (mapped to SPICE node 0).
targetobject
timeoutMsinteger

easyeda_generate_spice_netlist Generate standard SPICE netlist

Generates a syntactically valid SPICE circuit netlist (.cir / .sp) with ground-to-0 normalization, primitive RLC elements, semiconductor models, and configurable analysis directives (.op, .tran, .ac, .dc) for simulation in ngspice, LTspice, or Xyce.

ParameterTypeDescription
analysisParamsstringCustom analysis directive arguments (e.g. '1u 10m' for .tran, or '10 1 1Meg' for .ac).
analysisTypestringSimulation analysis type (.op, .tran, .ac, .dc).
destinationPathstringOptional destination directory / target path.
fileNamestringOptional output file name without extension.
groundNetstringNet name to map to SPICE datum node 0.
includeDefaultModelsbooleanInclude built-in generic diode and BJT .model cards.
includeSubcircuitsbooleanWhether to include X subcircuit cards for ICs.
targetobject
timeoutMsinteger