read_circuit
Extract component values, netlist content, and schematic directives from LTspice/ngspice circuit files (.cir, .net, .asc). Retrieve structured data for circuit design and verification.
Instructions
Read and parse a circuit file (.cir/.net or .asc). For netlists: returns content and component values. For schematics: returns layout and directives.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read_circuit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to circuit file (.cir, .net, or .asc) | |
| format | No | Response format: 'json' for structured data, 'text' for human-readable |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| type | No | ||
| wires | No | ||
| labels | No | ||
| content | No | ||
| components | No | ||
| directives | No | ||
| wire_count | No |