set_component_value
Set or update component values in circuit files (single or batch), and fix node connections in netlists.
Instructions
Set component value(s) in a circuit file (single or batch mode), or rewrite one component's node connectivity ('nodes', single mode, .cir/.net only). A no-op value write is reported as unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to circuit file (.cir, .net, or .asc) | |
| nodes | No | Single mode only: rewrite the component's node connectivity to this ordered list (e.g. ['in', 'out', '0']) — the fix for a wrong or typo'd connection. Requires 'reference'; .cir/.net only (on a .asc, wire pins with connect). Not combined with 'value'/'values' — set the value in a separate call. | |
| value | No | New value for single mode (e.g., '10k', '100n') | |
| values | No | Batch mode: {reference: value} dict (e.g., {'R1': '10k', 'C1': '100n'}) | |
| reference | No | Component reference for single mode (e.g., 'R1') |