Export Sch Ps
export_sch_psExport KiCad schematic pages to PostScript files via kicad-cli, supporting page selection, themes, and drawing sheet overrides.
Instructions
Export a schematic to PostScript via kicad-cli (sch export ps), one PS per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, no-background-color, and page selection. schematicPath is REQUIRED.
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": {
"schematicPath": "<schematicPath>",
"outputDir": "<outputDir>"
},
"name": "export_sch_ps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Comma list of page numbers to print (blank = all pages) | |
| theme | No | Color theme to use (default: schematic settings) | |
| defineVar | No | Project variable overrides as 'KEY=VALUE' strings | |
| outputDir | Yes | Output directory for the PostScript files | |
| defaultFont | No | Default font name | |
| drawingSheet | No | Path to a drawing sheet override | |
| blackAndWhite | No | Black and white only | |
| schematicPath | Yes | Path to the .kicad_sch (required) | |
| noBackgroundColor | No | Avoid setting a background color (regardless of theme) | |
| excludeDrawingSheet | No | No drawing sheet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |