EasyEDA Copilot
v1.3.3AI 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
| Parameter | Type | Description |
|---|---|---|
schematic_uuid | string | Optional 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
| Parameter | Type | Description |
|---|---|---|
designators | ||
includeAll | boolean | 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…
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to a JavaScript PCB layout DSL code file. |
wait_ms | integer | Initial 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
| Parameter | Type | Description |
|---|---|---|
layoutId * | string | layoutId 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
highlight_component | string | Optional component designator to highlight. |
highlight_component_colors | object | Optional designator-to-color map, e.g. {"U1":"#ff0000"}. |
highlight_net | string | Optional net name to highlight. |
highlight_net_colors | object | Optional net-to-color map, e.g. {"BAT+":"#ff0000","GND":"#00ff00"}. |
layers | array | Layers to render, e.g. ["TOP"], ["BOTTOM"], ["TOP","BOTTOM"], or ["all"]. Use uppercase layer names; only "all" is lowercase. |
padding_mm | number | Padding around the rendered area in millimeters. |
zoom | Zoom 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.
| Parameter | Type | Description |
|---|---|---|
net * | string | Net name to inspect. |
drc_limit | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
designator * | string | Component designator to inspect, e.g. R1. |
radius | number | Search 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Output 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
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to a JavaScript PCB routing DSL file. |
wait_ms | integer | Initial 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to a trusted local JavaScript analysis DSL file. |
wait_ms | integer | Initial 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
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.
| Parameter | Type | Description |
|---|---|---|
name | string |
restore_checkpoint_for_current_page Restore EasyEDA Checkpoint
Restore one checkpoint by id in EasyEDA.
| Parameter | Type | Description |
|---|---|---|
id | string |
library_list List EasyEDA Component Libraries
List component libraries supported by the backend. Explicit public library UUIDs are also accepted by component_search.
component_search Search EasyEDA Component
Search EasyEDA devices. library_uuid defaults to lcsc; use library_list to discover aliases. Search results include a ready-to-use part_uuid. Components with any ambiguous pin name may have preview_recommended and a local preview_image_path. Skip preview for one-pin parts, ordinary two-pin resistors, simple inductors and fuses, and parts with clear pin names. Capacitors are not exempt. Inspect only the selected uncertain candidate; do not review every result or repeat a completed review. Rendering failures leave the component in the result with preview_error.
| Parameter | Type | Description |
|---|---|---|
MPN | string | null | |
library_uuid | string | Library alias or explicit public library UUID. Defaults to lcsc. |
part_uuid |
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.
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
add_components | array | Components to add |
add_reused_blocks | array | reused blocks to add |
external_connect | Use 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_connect | Use 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_path | string | Path to a UTF-8 JSON file containing CircuitMod. Provide either file_path or inline circuit fields. |
rm_components | Components 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
| Parameter | Type | Description |
|---|---|---|
blocks * | object | All current-page components grouped by block name. |
auto_resize_page | boolean | Shrink or grow the schematic drawing sheet to the smallest standard format that fits the layout inside its frame and title block. |
draw_block_box | boolean | Draw 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.
| Parameter | Type | Description |
|---|---|---|
get_full_schematic | boolean | Get 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…
| Parameter | Type | Description |
|---|---|---|
get_full_schematic_groups | boolean | Read 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.
| Parameter | Type | Description |
|---|---|---|
mode | string | preserve 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.
| Parameter | Type | Description |
|---|---|---|
document_uuid | string | Document UUID from get_current_project_info. |
project_uuid | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
settle_ms | number | Delay in milliseconds between close and reopen. |
modify_name Rename EasyEDA: Schematic, Schematic page, PCB
Modify the name of an EasyEDA Schematic, Schematic page, PCB
| Parameter | Type | Description |
|---|---|---|
doc * | ||
name * | string | New 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.
| Parameter | Type | Description |
|---|---|---|
doc * |
delete_doc Delete EasyEDA Doc
Delete a doc from the current EasyEDA project. This is destructive!
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
instanceId * | string | instanceId 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.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string | |
wait_ms | integer | Wait below the common 60-second MCP request timeout. |
cancel_operation Cancel Operation
Request cooperative cancellation of a running operation. Cancellation is not rollback.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string |
apply_operation Apply Operation
Retry applying a prepared in-memory operation result without running the operation again.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
code | string | JavaScript async-function body. Use return for the result; await all changes. |
file_path | string | Absolute path to a UTF-8 JavaScript file on the MCP host. Alternative to code. |
input_files | object | Named UTF-8 files on the MCP host, available as inputs[name]. Absolute paths; combined maximum 512 MiB. Data is passed separately from code. |