eda_pcb_net_get_all_primitives_by_net
Retrieves all PCB primitives (tracks, pads, vias, text) linked to a specified net, returning their object data for inspection or further processing.
Instructions
pcb_Net.getAllPrimitivesByNet(net: string, primitiveTypes?: Array<EPCB_PrimitiveType>) -> Promise<Array<IPCB_Primitive>> 获取关联指定网络的所有图元 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_net_get_all_primitives_by_net"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |