Import a KiCad project
import_kicad_projectBring an existing KiCad project in as a board workspace: the project folder as a ZIP (the .kicad_pcb, .kicad_pro, schematics, footprint and 3D-model folders), base64-encoded, up to about 18 MB zipped. An Altium Designer project (the .PcbDoc at the top of the ZIP) is converted with KiCad: the board, and its clearance, width, via and differential-pair rules as net classes; the reply lists the rules not carried (rooms, layers, lengths). The CLI does this with koppar import <folder>. Or from_design_id: the KiCad project of a design the pipeline built (its board, rules, schematics and custom footprints) opened as a workspace, to change the design rules, place and route it with the board tools and put the result back with upload_board (workspace_id). Returns the design_id the board tools take and a first get_board_info. A new revision of a board you already imported (changed in KiCad) is imported again with the session_id the first import returned: it opens as a new design in that same project, beside the revisions before it, so one board stays one project in the user's list. Not for changes the board tools can make on the design you have: work on that design_id.
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": "import_kicad_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | No | A note for the design record. No tool reads it: what to keep, widths and layers go in the options of set_design_rules and route_board. | |
| title | No | ||
| board_file | No | Which .kicad_pcb (or Altium .PcbDoc) at the top of the project, when there are several. | |
| session_id | No | The project (web session) a new revision of this board goes into: the session_id the first import returned. Without it, an import whose title matches a project you opened before, or whose board file (the .kicad_pcb name) one of your imports had, joins that project, so revisions of one board stay together in the user's list. | |
| zip_base64 | No | The zipped project folder, base64. | |
| new_project | No | Start a new project even when one with this title exists. | |
| from_design_id | No | A design of yours with a board (start_board or upload_board): its KiCad project becomes the workspace. Instead of zip_base64. |