add_hierarchical_sheet
Create hierarchical sheet blocks in parent schematic and automatically generate matching labels in an existing child schematic.
Instructions
Add a hierarchical sheet to a parent schematic with matching labels in the child.
Creates the sheet block in the parent and corresponding hierarchical
labels in the child schematic. The child schematic must already exist
(create it with create_schematic first).
Args:
parent_schematic_path: Path to parent .kicad_sch
sheet_name: Display name for the sheet
sheet_file: Path to child .kicad_sch (must exist)
pins: List of dicts with 'name' (str) and 'direction' (str) keys.
Direction: input, output, bidirectional, tri_state, passive.
x: X position of sheet block (default 25.4)
y: Y position of sheet block (default 25.4)
project_path: Path to .kicad_pro file (for sub-sheet instance tracking)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_schematic_path | Yes | ||
| sheet_name | Yes | ||
| sheet_file | Yes | ||
| pins | Yes | ||
| x | No | ||
| y | No | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |