Add Hierarchical Sheet
add_hierarchical_sheetInsert a hierarchical-sheet block into a parent schematic, linking an existing sub-sheet file and fixing component instance paths so ERC resolves references correctly.
Instructions
Insert a hierarchical-sheet reference block into a parent schematic, pointing at an existing sub-sheet file. Adds the sheet box, name/file fields, a sheet_instances path entry on the next page number, and fixes sub-sheet component instance paths so ERC resolves references.
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": {
"schematicPath": "<schematicPath>",
"subsheetPath": "<subsheetPath>"
},
"name": "add_hierarchical_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Sheet box size in mm (default 80x50) | |
| position | No | Top-left of the sheet box in mm (default 50,50) | |
| sheetName | No | Display name for the sheet | Sheet |
| subsheetPath | Yes | Path to the existing sub-sheet .kicad_sch to reference | |
| schematicPath | Yes | Path to the parent .kicad_sch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |