Create project
project_createCreate a new KiCad project with schematic and PCB files, then make it active. Refuses to overwrite existing projects; supports layer templates, fab design rules, and a board outline size.
Instructions
Create a new KiCad project (.kicad_pro, .kicad_sch, .kicad_pcb) and make it active. Refuses to overwrite an existing project. template: '2layer' (default) | '4layer' | 'blank' (KiCad defaults, no fab rules). fab: the fab profile whose design rules the project gets (default: the configured one). board_size: [width_mm, height_mm] draws a rectangular outline. dir: the parent folder (the project goes in dir/), or the project folder itself when it ends in ; default Documents/Copper/. KiCad re-loads the files (ERC + DRC) before success is reported. Example: project_create(name='usb-sensor', board_size=[50,30])
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": {
"name": "<name>"
},
"name": "project_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | parent folder, or the project folder itself if it ends in <name> | |
| fab | No | fab profile name (fab_export(profile='list') shows them) | |
| rev | No | ||
| name | Yes | ||
| title | No | ||
| company | No | ||
| template | No | ||
| board_size | No | [width_mm, height_mm] |