add_component
Add a component to a KiCad schematic at specified coordinates, using installed symbol libraries or a built-in set when unavailable. Writes atomically to prevent corruption.
Instructions
Add a component to a schematic. Uses the installed KiCad symbol libraries when available, otherwise a built-in symbol set. Writes atomically.
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>",
"lib_id": "<lib_id>",
"x_mm": "<x_mm>",
"y_mm": "<y_mm>"
},
"name": "add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x_mm | Yes | ||
| y_mm | Yes | ||
| value | No | ||
| lib_id | Yes | ||
| rotation | No | ||
| footprint | No | ||
| reference | No | ||
| schematic_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |