General Tools

These tools handle project-level operations and editor control.

save_document

Save the current schematic and/or PCB to disk.

save_document doc_type="all"
ParameterTypeDescription
doc_typestring"schematic", "pcb", or "all" (default)

check_status

Get current project status including open editors and unsaved changes.

check_status

Returns project path, open editors, current sheet, and modification state.

launch_editor

Launch the schematic or PCB editor from the project manager.

launch_editor doc_type="schematic"
ParameterTypeDescription
doc_typestring"schematic" or "pcb"

run_terminal

Execute shell commands for file operations, git, and scripting.

run_terminal command="ls -la"
ParameterTypeDescription
commandstringShell command to execute

screenshot

Export PNG renders of schematics or PCB with layer selection.

screenshot target="pcb" layers=["F.Cu", "B.Cu", "Edge.Cuts"]
ParameterTypeDescription
targetstring"schematic" or "pcb"
layersarrayPCB layers to include (PCB only)
outputstringOutput file path (optional)

create_project

Create a new KiCad project with standard file structure.

create_project project_name="my-board" directory="/path/to/projects"
ParameterTypeDescription
project_namestringProject name
directorystringDirectory for the project

open_project

Open an existing KiCad project.

open_project project_path="/path/to/project.kicad_pro"
ParameterTypeDescription
project_pathstringPath to .kicad_pro file or directory containing one