export_schematic_svg
Export the pages of a KiCad schematic as SVG vector files using kicad-cli, rendering each sheet path as its own zoomable page for clear, lossless viewing and sharing.
Instructions
Export the pages of a schematic as SVG files with kicad-cli.
kicad-cli renders the pages of the project with the hierarchy of its root schematic (the schematic of the project name), thus each page has the references of its sheet path. For the root schematic, the files are all pages of the project. For an other file (a sub-sheet), the files are the pages of its sheet paths (a sheet that the hierarchy uses two times gives two pages). An SVG file is a vector image: a zoom shows each detail with no loss. The tool needs kicad-cli.
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": {
"schematic_path": "<schematic_path>"
},
"name": "export_schematic_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | Optional folder of the files. Default: <schematic>_svg next to the schematic. | |
| schematic_path | Yes | A .kicad_sch file of the project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |