eda_pcb_document_get_primitives_in_region
Return all PCB primitives located within a given rectangular region. Specify left, right, top, and bottom coordinates to fetch the full set of elements in that area.
Instructions
pcb_Document.getPrimitivesInRegion(left: number, right: number, top: number, bottom: number, leftToRight?: boolean) -> 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_document_get_primitives_in_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |