eda_pcb_layer_get_current_layer
Get detailed properties of the currently active PCB layer. Use this to identify which layer is selected and access its attributes for design context.
Instructions
pcb_Layer.getCurrentLayer() -> Promise<IPCB_LayerItem | undefined>
获取当前图层的详细属性
remarks: ADD since EDA v4.2
returns: 当前图层的详细属性,无激活层或无 PCB 画布时返回 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_layer_get_current_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |