eda_pcb_primitive_component_get_all
Retrieves all PCB primitive components (devices) from the active EasyEDA Pro PCB editor, optionally filtered by layer and lock status, returning an array of component objects.
Instructions
pcb_PrimitiveComponent.getAll(layer?: TPCB_LayersOfComponent, primitiveLock?: boolean) -> Promise<Array<IPCB_PrimitiveComponent>> 获取所有器件 returns: 器件图元对象数组
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "eda_pcb_primitive_component_get_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |