eda_pcb_primitive_get_primitives_bbox
Get the bounding box coordinates (minX, minY, maxX, maxY) for specified PCB primitives. Returns undefined when a primitive is missing or has no bounding box.
Instructions
pcb_Primitive.getPrimitivesBBox(primitiveIds: Array<string | IPCB_Primitive>) -> Promise<{ minX: number; minY: number; maxX: number; maxY: number } | undefined>
获取图元的 BBox
returns: 图元的 BBox,如若图元不存在或没有 BBox,将会返回 undefined 的结果
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_get_primitives_bbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |