jlc_find_alternatives
Find alternative electronic components with better availability when a part has low stock or you need to compare options. Search by LCSC code and filter by stock, package size, library type, and EasyEDA footprint compatibility.
Instructions
Find alternative parts similar to a given component.
Searches the same subcategory for parts with better availability. Useful when a part has low stock or you want to compare options.
Args: lcsc: LCSC part code to find alternatives for (e.g., "C2557") min_stock: Minimum stock for alternatives (default: 10) same_package: If True, only return parts with the same package size library_type: Filter alternatives by library type: - "basic": Only basic parts (no assembly fee) - "preferred": Only preferred parts (no assembly fee) - "no_fee": Basic or preferred (no assembly fee) - best for cost optimization - "extended": Only extended parts ($3 assembly fee each) - "all" or None (default): All library types Use "no_fee" to find cheaper alternatives for an extended part. has_easyeda_footprint: Filter by EasyEDA footprint availability: - True: Only return parts WITH EasyEDA footprints (for Atopile/KiCad users) - False: Only return parts WITHOUT footprints - None (default): Don't filter by footprint (fastest) Note: Filtering by footprint is slower as it checks each alternative. limit: Maximum alternatives to return (default: 10, max: 50)
Returns: Original part info (with library_type and has_easyeda_footprint) and list of alternatives sorted by stock. Alternatives include library_type and specs for easy comparison. When filtering by footprint, alternatives also include EasyEDA UUIDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lcsc | Yes | ||
| min_stock | No | ||
| same_package | No | ||
| library_type | No | ||
| has_easyeda_footprint | No | ||
| limit | No |