Extract Circuit
extract_circuitApply circuit changes to KiCad .kicad_sch files: add or remove components, connect signals, and reuse blocks. Handles recoverable errors with up to 36 items.
Instructions
Apply circuit changes to a KiCad .kicad_sch file. Every added component must include part_uuid. Recoverable item errors are returned (max 36). For circuit modification docs, read: /app/docs/SKILL.md
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": {
"add_components": "<add_components>",
"add_reused_blocks": "<add_reused_blocks>",
"rm_components": "<rm_components>",
"external_rm_connect": "<external_rm_connect>",
"external_connect": "<external_connect>",
"path": "<path>"
},
"name": "extract_circuit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Existing target .kicad_sch path. | |
| rm_components | Yes | Components to remove from the circuit | |
| add_components | Yes | Components to add | |
| external_connect | Yes | Use only when you need to connect to a pin of an external component that you have not modified and that does not have a signal_name | |
| add_reused_blocks | Yes | reuded blocks to add | |
| external_rm_connect | Yes | Use only if you need to remove/break the connection from an external component's pin. Remember to remove external_rm_connect first and then add external_connect. |