sim_attach_primitives
Attach SPICE primitives to multiple components in a single call, avoiding one-by-one LLM turns. Use after a readiness audit lists passives needing SpicePrefix and Value parameters.
Instructions
Attach SPICE primitives to MANY components in ONE call.
PREFER THIS after running sim_get_readiness, the
readiness response typically lists 20-50 passives that all
need the SpicePrefix + Value parameter pair. Attaching them one
at a time would cost one LLM turn per component (there is no
singular variant); this tool does the whole set in one round-trip.
Args: attachments: List of attach dicts, each with: - designator (str, required) - primitive (str, required), R/L/C/V/I/D/Q/M/X - value (str, optional), "10k", "100n", "DC 5", "SIN(0 1 1k)", etc. - spice_model (str, optional), model name for semi/sub-circuit parts - sim_kind (str, optional), "General" / "Subcircuit" / "Model"
Example, attach the 4 passives from a readiness audit: sch_attach_spice_primitives(attachments=[ {"designator": "R1", "primitive": "R", "value": "10k"}, {"designator": "R2", "primitive": "R", "value": "10k"}, {"designator": "C1", "primitive": "C", "value": "100n"}, {"designator": "C2", "primitive": "C", "value": "1u"}, ])
Returns: Dict with attached, failed, total counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachments | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||