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