Add Component
add_componentPlace a primitive component in an LTspice schematic by specifying its kind, reference, and position. Use it to add resistors, capacitors, and other primitives to .asc files.
Instructions
Place a primitive component.
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": {
"schematic_path": "<schematic_path>",
"kind": "<kind>",
"reference": "<reference>"
},
"name": "add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| kind | Yes | ||
| value | No | ||
| rotation | No | ||
| reference | Yes | ||
| schematic_path | Yes | ||
| workspace_root | No | Optional per-call workspace root override. |