add_part
Creates a power-tree part with default geometry and no nets, letting you place it near another part or at coordinates and connect wires afterward.
Instructions
Add a part with default geometry and no wires; connect it afterwards. Types: Power
(a source), Converter (buck/boost; Input 1 plus one Output per entry in outputs), LDO,
Load, Resistor, Capacitor. outputs entries (Power, Converter, LDO): {vout} in volts,
{nom_eff} in percent (Converter only), {iout_max} in amperes. inputs entries (Load):
{ipeak} and/or {inom} in amperes, {unit_exp} a power-of-ten exponent for the stored
unit (-3 means the values are milliamps). resistance in ohms (Resistor).
part_number only for Converter or LDO. Position: near_id (another part's id),
or explicit x/y (snapped to a 5-unit grid); otherwise a free spot. Returns the new part
with its
terminal refs. Nets (labels) cannot be created.
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": {
"tree_id": "<tree_id>",
"type": "<type>",
"name": "<name>"
},
"name": "add_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| tab | No | ||
| name | Yes | ||
| type | Yes | ||
| inputs | No | ||
| near_id | No | ||
| outputs | No | ||
| tree_id | Yes | ||
| resistance | No | ||
| part_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||