eda_call
Call any EasyEDA Pro API method by path to query or modify PCB data, primitives, layers, routing, and board state; supply arguments, optional fields, and timeout.
Instructions
直接呼叫任意 EasyEDA Pro API:eda.(...args)。注意單位是 EasyEDA 原生(PCB 為 mil,1 mm = 39.3701 mil),座標笛卡爾 Y 向上;多邊形參數傳 {"$polygon": [...]}(SVG 座標,Y 向下);要省略某參數傳 {"$undefined": true}。API 參考在 EasyEDA 安裝目錄 resources/app/assets/pro-api/*/api-types.d.ts。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "eda_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| path | Yes | 例如 "pcb_PrimitiveArc.create"、"pcb_Layer.getAllLayers" | |
| fields | No | 只回傳這些 getState_ 欄位,例如 ["PrimitiveId","X","Y"] | |
| timeout_ms | No |