fastmean_create_circuit
Create a native .scm schematic in a fresh folder from a node-based JSON circuit specification, including layout, component, and analysis settings.
Instructions
Create a native .scm in a fresh folder from a node-based JSON circuit spec.
Start from fastmean_example. R/C/L values must be positive. Ground is 0. Components connect through physical wires and junctions; ports are external I/O only. Optional spec.layout.placements maps names to {x,y,rotation}; x/y are multiples of 4 and rotation is 0=left/right,1=up/down,2/3=reversed. spec.layout.density is compact (default) or standard. Explicit coordinates stay unchanged; density controls automatic spacing only. ground_style is rail (default) or local. U nodes are [+,-]; I nodes are [from,to]. A single-terminal node gets one short wire and native CON endpoint, without an added electrical load or external PORT. All names used in analysis must be ASCII. Does not open a window. Fixed native primitives: D nodes=[anode,cathode], parameters={Ron,Roff,Uon}; G/VCCS, E/VCVS and F/CCCS use four native-ordered nodes and a numeric value. TR/TRANSFORMER nodes=[p1,p2,s1,s2], dotted pins1/3, n=Np/Ns>0; value=n or parameters={n}. SW/VCSWITCH nodes=[control+,control-,switch1,switch2], parameters={Ron,Roff,Uon,Uoff}, 0<Ron<=Roff, Uoff<=Uon; native hysteresis. See example(kind='flyback') and the guide for polarity and magnetic storage. spec.analysis.transient accepts stop, step and eps (0<eps<=0.1), saved in SCM. Use fastmean_create_project for X subcircuits and portable model files. All44 insertable classes are supported: call fastmean_catalog(detail=true) for nonlinear R/C/L, H, GYR, TR3, TUBE, NMOS_SMALL, NPN, OPAMP_SAT, PWM, PAM1/PAM2, BALMOD, THYRISTOR, MOSFET, LINE, BRIDGE, RS/DFF/JK/RSCLK, NOT/AND/OR/XOR/LATCH/COMP and SUM. Supply parameters by native key; omitted values use explicit adapter templates. Sources also support triangle/PWL.
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": {
"spec": "<spec>"
},
"name": "fastmean_create_circuit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | circuit | |
| spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||