add_component
Place a component from installed libraries into a circuit schematic, copying its library elements into the project and positioning all symbols on a 2.54 mm grid at the given coordinates.
Instructions
Add a component from the installed libraries to the circuit and place all its symbols (gates) on a schematic. Library elements are copied into the project library. Use add_device_to_board to put it on a PCB. Schematic grid is 2.54 mm.
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": {
"project_path": "<project_path>",
"device": "<device>",
"x_mm": "<x_mm>",
"y_mm": "<y_mm>"
},
"name": "add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Designator; default: prefix + next number | |
| x_mm | Yes | ||
| y_mm | Yes | ||
| value | No | Value text; default: library default (may contain {{ATTRIBUTE}} placeholders) | |
| device | Yes | Library device UUID (preferred) or exact device name, from search_components | |
| schematic | No | Schematic name, UUID or index; default: first | |
| project_path | Yes | Path to the project's *.lpp file or its directory | |
| rotation_deg | No | Counter-clockwise |