new_circuit
Create a complete circuit file from a part list and netlist in one call, with optional board placement; invalid input is rejected and nothing is written.
Instructions
Write a whole new circuit file from a netlist in one call: parts (no positions) and nets (pin lists). Unless place is false the board is then placed (fitted when no board is given) as a second entry. A block used more than once goes in sheets, used by instances. Nothing is written if anything is wrong; the answer says what. An existing file is refused unless replace. Details: guide { topic: "writing-circuits" }.
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": {
"file": "<file>",
"parts": "<parts>",
"nets": "<nets>"
},
"name": "new_circuit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | e.g. power.circuit.tsx | |
| nets | Yes | e.g. { "GND": ["R1.pin2", "U1.GND"] } | |
| board | No | mm; default 30 x 20 | |
| holes | No | ||
| pages | No | Pages after "Main", which holds the rest | |
| parts | Yes | May be empty when instances make them | |
| place | No | Default true | |
| pours | No | ||
| sheets | No | Each written as <name>.sheet.tsx | |
| replace | No | ||
| instances | No |