proj_get_component_info
Retrieves detailed metadata for a single electronic component—designator, footprint, parameters, pins, and optional pin nets—to inspect placement or wiring in a live EasyEDA Pro project.
Instructions
Get full information about a single component.
IMPORTANT, if you need info for MORE THAN ONE component, use
proj_get_component_info_many (batch). Looping this tool is a
large wall-time sink, especially with with_pin_nets=True
because each call compiles the project.
Performance note: pin nets are the only field that needs a
project compile, and a stale-cache compile on a multi-sheet
hierarchical project can take 30-60s. When you only need the
component's value, footprint, library reference, sheet, or
pin numbers/names (no nets), pass with_pin_nets=False and
the call drops to sub-second by skipping Project.DM_Compile
entirely. Use the default with_pin_nets=True only when you
actually need to know what each pin is wired to.
with_parameters=False further skips the parameter iterator
(Manufacturer / MPN / Value / Footprint paths). Marginal win
compared to skipping the compile, but useful for the cheapest
possible "is this designator placed?" probe.
timeout overrides the bridge's default poll timeout. The
compile-bound full-fat call can legitimately need 60-90s on
large projects, raise this when you keep with_pin_nets=True.
DATASHEET DISCIPLINE: Before making any claim about this
component's pin function, voltage rating, timing, or electrical
behavior, fetch its datasheet (WebSearch + WebFetch if needed).
The parameters / comment / library metadata returned here are
NOT authoritative, only the manufacturer datasheet is.
_datasheet_guidance in the response carries the rule and a
suggested search query.
Returns the component's designator, comment, footprint, library reference, parameters (when with_parameters=True), and every pin with name/number (and net assignment when with_pin_nets=True).
Args: designator: Component designator (e.g., "U1", "R8", "C3") project_path: Optional project path. If None, uses active project. with_pin_nets: When True (default) compile the project and emit the flattened net for each pin. Set to False to skip the compile and get a sub-second metadata-only response. with_parameters: When True (default) include the parameter dict. Set to False for the cheapest possible probe. timeout: Optional bridge poll-timeout override (seconds). Use a higher value (e.g., 90) when keeping with_pin_nets True on large hierarchical projects.
Returns:
Dictionary with designator, comment, footprint, lib_ref,
sheet, pins array (each with pin/name and, when requested,
net), and (when requested) parameters dict, plus
_datasheet_guidance + _datasheet_parts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| designator | Yes | ||
| project_path | No | ||
| with_pin_nets | No | ||
| with_parameters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||