lib_inspect_cse_zip
Inspect a Component Search Engine zip without extracting files to identify its SchLib, PcbLib, STEP model, MPN, extra members, and suspicious path-traversal entries before staging.
Instructions
Identify the library members of a Component Search Engine zip.
Stage 5 of the autonomous flow (library readiness,
reference/autonomy-roadmap.md): a SamacSys / Component Search
Engine download carries the symbol, footprint and 3D model for an
MPN in one zip. This tool reads the archive WITHOUT extracting
anything: which member is the .SchLib, which the .PcbLib, which
the STEP model, the best-effort MPN, and any members attempting
path traversal (suspicious). Inspect first, then stage the
files with lib_extract_cse_zip. Pure Python, no Altium.
Args: zip_path: Absolute path to the downloaded zip.
Returns:
{"ok": True, "mpn", "schlib", "pcblib", "step", "extras", "suspicious"} (member names; None when absent) or
{"ok": False, "reason": "..."} when the file is missing,
not a zip, or contains no .SchLib/.PcbLib.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||