EasyEDA Copilot

v1.3.3
io.github.biosshot/easyeda-copilot Checked 2 hours ago Published 7 days ago

AI tools for EasyEDA Pro schematics, PCB placement and routing, SPICE simulation, and DRC.

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

get_pcb_stack_layers Get PCB Stack Layers

Return the current PCB copper layer count and active signal routing layers. Open the target PCB document first and inspect this before writing router DSL layer constraints.

import_pcb_changes Import PCB Changes

Import schematic changes into the currently opened PCB document. If schematic_uuid is omitted, EasyEDA uses the schematic linked to the same board. Open the target PCB document first. For PCB docs, read the local docs folder: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.md

ParameterTypeDescription
schematic_uuidstringOptional schematic UUID to import changes from.

get_pcb_component_sizes Get PCB Component Sizes

Return resolved PCB footprint sizes in millimeters for selected current schematic components. Use before choosing compact board dimensions. For PCB layout docs, read the local docs folder: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.md

ParameterTypeDescription
designators
includeAllboolean | null

make_pcb_layout Make PCB Layout

Create PCB component placement from a JavaScript DSL file. Use solver({ previewBlock: "name" }) to fully solve and preview only one block family when its quality is uncertain; returns image paths and blockPreview diagnostics without an assembly layoutId. Both block preview and block.fixed work without localLayout. Open the target PCB first so its outline and component positions are supplied as existingPlacement. Long work returns an operation_id for wait_operation. This tool does not assemble or route the board. For PCB layout docs, read: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.m…

ParameterTypeDescription
file *stringPath to a JavaScript PCB layout DSL code file.
wait_msintegerInitial synchronous wait before returning a pcb-layout operation_id.

assemble_pcb_layout_on_current_pcbdoc Assemble PCB Layout

Send a previously generated make_pcb_layout board assembly payload to the currently opened EasyEDA PCB document. Runs as a managed operation, waits up to 50 seconds, and always returns operation_id. Before using this tool, call get_current_project_info, verify the schematic belongs to a BOARD item with a PCB document, and call open_document for that PCB uuid. For PCB assembly docs, read the local docs folder: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.md

ParameterTypeDescription
layoutId *stringlayoutId returned by make_pcb_layout.

validate_pcb_dsl Validate PCB DSL

Validate a JavaScript PCB placement DSL file against the current linked schematic. Open the target PCB first, as for make_pcb_layout; the tool reads schematic connectivity, suggested schematic groups, board outline and component positions from EasyEDA automatically. Return backend error/warning/info diagnostics with English messages and optional component/source context; grouping differences are info only. No AutoPlace or placement is applied. For guidance, read /work/app/node_modules/easyeda-copilot-mcp/docs/pcb-layout/intent-validation.md.

ParameterTypeDescription
file *stringPath to a JavaScript PCB layout DSL code file, as for make_pcb_layout.

preview_pcb Preview PCB

Render a PNG preview of the currently opened PCB document from PCB primitives using the Copilot renderer. Requires EasyEDA 3+. Supports layer filtering and custom highlight colors. Returns image_path and notes. This preview does not verify actual filled copper. Open the target PCB document first.

ParameterTypeDescription
highlight_componentstringOptional component designator to highlight.
highlight_component_colorsobjectOptional designator-to-color map, e.g. {"U1":"#ff0000"}.
highlight_netstringOptional net name to highlight.
highlight_net_colorsobjectOptional net-to-color map, e.g. {"BAT+":"#ff0000","GND":"#00ff00"}.
layersarrayLayers to render, e.g. ["TOP"], ["BOTTOM"], ["TOP","BOTTOM"], or ["all"]. Use uppercase layer names; only "all" is lowercase.
padding_mmnumberPadding around the rendered area in millimeters.
zoomZoom target: full board, a net, a component, or a bbox.

inspect_net Inspect PCB Net

Inspect a net on the open PCB. Returns one net summary: net, found, pads (net membership), layer, length (sum of line and arc lengths), vias (count), width (min/max, or null without tracks), segments (line and arc count), optional bbox of tracks/vias, polygons (source outlines), and drc (violation_count, truncated, violations). MULTI denotes through vias. Read connection failures in native drc.violations; no connections are inferred from geometry. Includes unrouted and via-only nets. Open the target PCB document first.

ParameterTypeDescription
net *stringNet name to inspect.
drc_limitintegerMaximum returned native DRC details for this net, after net filtering. violation_count uses the full matching result.

inspect_component Inspect PCB Component

Return a PCB component by designator with a list of nearest neighboring components within the given radius. Open the target PCB document first.

ParameterTypeDescription
designator *stringComponent designator to inspect, e.g. R1.
radiusnumberSearch radius in millimeters for nearest components.

get_current_pcb Get EasyEDA PCB

Read a PCB overview from native primitives through the connected MCP interface; not an atomic revision snapshot. Open a PCB document first. Coordinates are mm in the native PCB frame, not the normalized routing frame. For edits, resolve exact primitive IDs and reread their native poses. wires contains copper statistics grouped by net; pads lists net membership; polygons are source outlines, not rebuilt fill geometry. Use native DRC for connectivity. Responses over 8 KiB are saved to a file.

export_pcb_routing_board Export PCB RoutingBoard V2

Read the current PCB into the backend RoutingBoardV2 contract. Save board, diagnostics and native capture in a JSON file for export audits. Does not route, refill or modify the PCB. Keep the PCB unchanged during the sequential CAD reads. Reload a V2-capable extension first.

ParameterTypeDescription
file *stringOutput JSON path; its parent directory must exist.

run_pcb_router_dsl Run PCB Router DSL

Apply DRC, copper-only, or routing intent from an eda-copilot-router DSL file to the currently opened EasyEDA PCB. Long work returns an operation_id for wait_operation. PCB instructions: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.md. Authoritative router DSL declarations: /work/app/node_modules/eda-copilot-router/docs/routing-dsl.d.ts

ParameterTypeDescription
file *stringPath to a JavaScript PCB routing DSL file.
wait_msintegerInitial synchronous wait before returning a pcb-dsl operation_id.

run_pcb_analysis Run PCB Analysis

Analyze the current PCB from a local JavaScript analysis DSL file. Captures a read-only RoutingBoardV2 snapshot of the selected PCB. Returns operation_id for wait_operation or cancel_operation. The completed result contains analysis status and paths to JSON and PNG artifacts. Instructions and DSL declarations: /work/app/node_modules/easyeda-copilot-mcp/docs/pcb-analysis.

ParameterTypeDescription
file *stringPath to a trusted local JavaScript analysis DSL file.
wait_msintegerInitial wait for a reply. The analysis continues in the background if this wait expires.

list_checkpoints List EasyEDA Checkpoints

List saved checkpoints with names, newest first. Defaults to limit 16 and offset 0; use offset to page through older checkpoints.

ParameterTypeDescription
limitinteger
offsetinteger

save_checkpoint_for_current_page Save EasyEDA Checkpoint

Save a checkpoint for the current EasyEDA document. Give it a short descriptive name for recovery; only describe checks as passed after verification. Restore by the returned ID, even when names match.

ParameterTypeDescription
namestring

restore_checkpoint_for_current_page Restore EasyEDA Checkpoint

Restore one checkpoint by id in EasyEDA.

ParameterTypeDescription
idstring

library_list List EasyEDA Component Libraries

List component libraries supported by the backend. Explicit public library UUIDs are also accepted by component_search.

preview_component Preview EasyEDA Component Symbol

Render every section of an EasyEDA library schematic symbol with visible pin numbers. Returns only image_path for the generated PNG; no image is attached.

ParameterTypeDescription
part_uuid *Ready-to-use part_uuid from component_search.

extract_circuit_on_current_page Extract Circuit

Apply circuit changes to the current EasyEDA page. Every added component must include part_uuid. The result reports remaining current-sheet space and warns below 10%. Runs as a managed operation, waits up to 50 seconds, and always returns operation_id. For circuit modification docs, read: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.md

ParameterTypeDescription
add_componentsarrayComponents to add
add_reused_blocksarrayreused blocks to add
external_connectUse only when you need to connect to a pin of an external component that you have not modified and that does not have a signal_name
external_rm_connectUse only if you need to remove/break the connection from an external component's pin. Remember to remove external_rm_connect first and then add external_connect.
file_pathstringPath to a UTF-8 JSON file containing CircuitMod. Provide either file_path or inline circuit fields.
rm_componentsComponents to remove from the circuit

beautify_schematic_on_current_page Beautify EasyEDA Schematic

Reassemble every component on the current EasyEDA schematic page into named functional blocks. The blocks must cover the whole page. A checkpoint is saved before replacement, and failures restore it automatically. Runs as a managed operation, waits up to 50 seconds, and always returns operation_id. For circuit workflow docs, read: /work/app/node_modules/easyeda-copilot-mcp/docs/SKILL.md

ParameterTypeDescription
blocks *objectAll current-page components grouped by block name.
auto_resize_pagebooleanShrink or grow the schematic drawing sheet to the smallest standard format that fits the layout inside its frame and title block.
draw_block_boxbooleanDraw Copilot-managed boxes and labels around functional blocks.

get_schematic Get Schematic

Get the current EasyEDA schematic page, or all pages with get_full_schematic. Responses over 8 KiB are saved to a file.

ParameterTypeDescription
get_full_schematicbooleanGet Full Schematic: retrieve the schematic from all pages.

get_schematic_groups Get EasyEDA Schematic Groups

Read the current schematic page and return heuristic component groups plus direct non-ground wire islands. Set get_full_schematic_groups to concatenate page-local results from every schematic page. maybe_blocks and wires[].pins contain space-separated references; groups may omit singleton or ambiguous components. errors contains non-fatal diagnostics when the result is partial. declared_blocks and declared_modules list blocks the designer declared with the PCB Block, PCB Module, PCB Attach and PCB Role component properties; they are explicit and take precedence over maybe_blocks; declaration_e…

ParameterTypeDescription
get_full_schematic_groupsbooleanRead and concatenate schematic groups from every page in the current schematic.

annotate_designators Annotate Schematic Designators

Annotate component designators across every page of the current EasyEDA schematic. Prefixes are preserved exactly; only trailing numbers are assigned. Multi-part component sections are renamed together. Runs as a managed operation, waits up to 50 seconds, and always returns operation_id.

ParameterTypeDescription
modestringpreserve changes only duplicate or unnumbered designators; resequence recalculates every trailing number in page and position order.

open_document Open EasyEDA Project or Document

Open either a project or a document by UUID. Before switching projects, every open EasyEDA schematic, PCB, and panel tab is saved; the switch is aborted if any save fails.

ParameterTypeDescription
document_uuidstringDocument UUID from get_current_project_info.
project_uuidstringProject UUID from get_all_projects or create_doc.

save_doc Save Current EasyEDA Document

Save the currently active EasyEDA schematic, PCB, or panel document.

sync_current_document Sync Current EasyEDA Document

Force EasyEDA to synchronize the current schematic or PCB document by saving it, closing the current editor tab, waiting briefly, and reopening the same document.

ParameterTypeDescription
settle_msnumberDelay in milliseconds between close and reopen.

modify_name Rename EasyEDA: Schematic, Schematic page, PCB

Modify the name of an EasyEDA Schematic, Schematic page, PCB

ParameterTypeDescription
doc *
name *stringNew short name. Use UPPERCASE or PascalCase

create_doc Create EasyEDA Project or Document

Create a project, or create a document in the current EasyEDA project. Project creation uses an experimental EasyEDA beta API and does not open the new project.

ParameterTypeDescription
doc *

delete_doc Delete EasyEDA Doc

Delete a doc from the current EasyEDA project. This is destructive!

ParameterTypeDescription
doc *

get_current_project_info Get Current EasyEDA Project Info

Read the current EasyEDA project tree and document metadata through the connected extension. BOARD items show the linked schematic and PCB document; use this before PCB assembly.

get_pcb_drc_rules Get PCB DRC Rules

Return a compact routing-relevant view of the current EasyEDA PCB DRC rules: global limits, net classes, differential pairs, equal-length groups, and explicit net overrides. Open the target PCB document first.

check_pcb_drc Check PCB DRC

Run native EasyEDA PCB DRC on the open PCB. Returns compact grouped violations with full counts, truncated: true only when details are omitted, object labels, messages, primitive_ids, rule_name and layer when supplied by EasyEDA. Resolve primitive_ids through the PCB API before editing. Does not rebuild pours. The detail budget is shared across groups per category, with at least one item per nonempty group. Open the target PCB document first.

ParameterTypeDescription
limitnumberMaximum number of violations to return per category, split across rule groups.

list_easyeda_instances List EasyEDA Instances

List connected EasyEDA instances. Use when more than one window or project may be open.

select_easyeda_instance Select EasyEDA Instance

Select which connected EasyEDA project this MCP process should use when multiple EasyEDA instances are connected.

ParameterTypeDescription
instanceId *stringinstanceId returned by list_easyeda_instances.

list_operations List Operations

Discover active and recently completed operations in this MCP process, including IDs lost when an initial wait was cancelled. Returns compact status, stage and target metadata.

wait_operation Wait Operation

Wait for a running mutation, PCB layout, PCB router DSL, or PCB analysis operation. Running router responses include up to 10 recent log lines and their update time when available.

ParameterTypeDescription
operation_id *string
wait_msintegerWait below the common 60-second MCP request timeout.

cancel_operation Cancel Operation

Request cooperative cancellation of a running operation. Cancellation is not rollback.

ParameterTypeDescription
operation_id *string

apply_operation Apply Operation

Retry applying a prepared in-memory operation result without running the operation again.

ParameterTypeDescription
operation_id *string

get_all_projects Get All EasyEDA Projects

Read all directly accessible EasyEDA teams, folders, and projects as a nested project tree.

execute_js Execute JavaScript in EasyEDA

Execute JavaScript in the selected EasyEDA window using code OR an absolute file_path. Code limit: 64 MiB. Optional input_files supplies named UTF-8 strings as inputs[name], up to 512 MiB combined. Automatically checkpoints the current document before execution. Execution budget is 60 seconds; native actions may outlive cancellation or timeout. Runs as a managed operation, waits up to 50 seconds, and always returns operation_id. Returns {checkpoint,result,artifacts}; binary and oversized results are saved as local files. Read /work/app/node_modules/easyeda-copilot-mcp/docs/execution/instructio…

ParameterTypeDescription
codestringJavaScript async-function body. Use return for the result; await all changes.
file_pathstringAbsolute path to a UTF-8 JavaScript file on the MCP host. Alternative to code.
input_filesobjectNamed UTF-8 files on the MCP host, available as inputs[name]. Absolute paths; combined maximum 512 MiB. Data is passed separately from code.