add_subcircuit_instance
Places a subcircuit instance at specified coordinates, returning its ports keyed by pin labels so you can wire it into the parent circuit. Finish defining the subcircuit's pins first.
Instructions
Place an instance of another circuit of this project (east-facing, default appearance). Returns its ports keyed by the subcircuit's pin labels: input pins (facing east) on the west edge, output pins on the east edge, each top-to-bottom in the subcircuit's pin y order. Finish the subcircuit's pins before placing.
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>",
"subcircuit": "<subcircuit>",
"x": "<x>",
"y": "<y>"
},
"name": "add_subcircuit_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| path | Yes | ||
| label | No | ||
| circuit | No | ||
| subcircuit | Yes |