Update Symbol From Library
update_symbol_from_libraryRefresh embedded lib_symbols cache entries from a KiCad symbol library to update schematic symbols. Use it to sync a single schematic or all schematics in a project folder.
Instructions
Refresh embedded lib_symbols cache entries from a KiCad symbol library (equivalent to KiCad's Update Symbol from Library). Skips mirror-cache entries (__m0, __m90, …). Flattens (power) symbols for schematic format. Pass projectsDir to update all schematics in a folder, or schematicPath for one file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | No | Optional: update only these symbol names (without Library: prefix) | |
| backupDir | No | Backup folder with matching .kicad_sch filenames (for repairMirrorFromBackup) | |
| libraryName | Yes | Symbol library nickname from sym-lib-table (e.g. Device, project_lib) | |
| projectsDir | No | Directory containing project subfolders with .kicad_sch files | |
| schematicPath | No | Single .kicad_sch file to update | |
| schematicPaths | No | Multiple .kicad_sch files | |
| repairMirrorFromBackup | No | Restore __m* mirror-cache lib_symbols blocks from backupDir first |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |