build_schematic
Build and save circuits from component and pin descriptions, including orthogonal connections and harmonics, without writing .sch syntax.
Instructions
Build and save a circuit from component/pin descriptions without writing .sch syntax.
Components: {type,name,position:[x,y],orientation:0..3,params:{parameter:value}}. Diode additionally requires model='BAT54' (loaded locally) or explicit properties. Connections: {from:{component,pin},to:{component,pin},via:[[x,y]],label:optional}. Pins are zero-based; default R/filter/diode pin0 left, Vac pin0 top, GND pin0 center. All routes must be orthogonal. Different-net crossings/touches are rejected. Harmonics: {order:3,count:4}. Source frequencies are inserted automatically.
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>",
"components": "<components>",
"connections": "<connections>"
},
"name": "build_schematic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| harmonics | No | ||
| components | Yes | ||
| connections | Yes | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| saved | Yes | ||
| backup | Yes | ||
| sha256 | Yes | ||
| warnings | Yes | ||
| gui_reload_required | Yes |