add_component
Add a component to an LTspice .asc schematic by specifying symbol, reference designator, value, rotation, and grid coordinates. Solve missing parts in circuit designs directly.
Instructions
Add a new component to an .asc schematic at a specified grid position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate (LTspice grid units) | |
| y | Yes | Y coordinate (LTspice grid units) | |
| path | Yes | Path to .asc schematic | |
| value | No | Component value (e.g., '10k', 'NMOS_3V3') | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable | |
| symbol | Yes | Symbol name (e.g., 'nmos', 'pmos', 'res', 'cap', 'voltage') | |
| rotation | No | Rotation/mirror (PMOS typically M180, NMOS typically R0) | R0 |
| reference | Yes | Reference designator (e.g., 'M1', 'R3', 'VDD') | |
| attributes | No | Optional attributes to set (e.g., {'SpiceLine': 'W=10u L=0.5u', 'Value2': '...'}) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pins | No | ||
| symbol | No | ||
| position | No | ||
| rotation | No | ||
| warnings | No | ||
| reference | No | ||
| bounding_box | No |