import_board
Create a board from a DXF/SVG drawing in one step: largest closed shape becomes outline, circles mounting holes, other shapes keepouts; import KiCad boards as new circuits and report omissions.
Instructions
Set the board from a DXF or SVG drawing as ONE change: the largest closed shape is the outline, circles in it mounting holes, other shapes keepouts. Parts are not moved; the answer lists those now outside. A .kicad_pcb instead makes file a new circuit (outline, parts, nets, copper); the answer lists what did not come over.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"dxf": "<dxf>"
},
"name": "import_board"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dxf | Yes | A DXF, SVG (sized in mm, in…) or KiCad board in the project folder, e.g. case.dxf or old.kicad_pcb | |
| file | Yes | Circuit file, e.g. index.circuit.tsx; for a KiCad board, the new one | |
| layer | No | DXF: only this layer may make the outline | |
| units | No | Overrides the drawing's own units | |
| origin | No | "centre" (default) centres the outline on the origin; "keep" leaves it as drawn | |
| replace | No | Replace the board's holes and keepouts; without it a board that has some is refused |