Export a library
export_libraryExport Altium .PcbLib or .SchLib files as JSON or CSV text in the response, enabling library backup, version control, and migration without writing to disk.
Instructions
Export a .PcbLib or .SchLib as text in the response — nothing is written to disk. JSON carries every component in the same shape read_pcblib/read_schlib and write_pcblib/write_schlib use, plus for a PcbLib the embedded 3D models its bodies reference (embedded_models, base64 STEP data keyed by model GUID), so import_library can rebuild the library elsewhere; CSV is a summary table: name, description (and a symbol's designator), one count column per primitive kind, and the external 3D model / footprint link count. Use JSON to version-control, back up or move a library and CSV for an inventory; use read_pcblib/read_schlib instead to inspect components with pagination, and list_components with details for a quick overview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Export format: 'json' for full data, 'csv' for summary table | |
| compact | No | For PcbLib JSON export: if true (default), omit per-layer pad data when stack_mode is Simple | |
| filepath | Yes | Path to the .PcbLib or .SchLib file |