generate_netlist
Exports a KiCad schematic's netlist to a temporary XML file and returns its path for tracing connections, nets, and components. Regenerate it after each schematic change.
Instructions
Make the netlist of a schematic with kicad-cli, and give the path of its file.
kicad-cli writes the netlist (KiCad XML) of the full project into a file in the temporary folder of the system. Give this file to trace_netlist_connection, get_netlist_nets and get_netlist_components. Make the netlist again after a change of the schematic.
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>"
},
"name": "generate_netlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schematic_path | Yes | A .kicad_sch file of the project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |