create_pcb_stackup
Generate a color-coded PCB stackup cross-section diagram in draw.io, showing each layer's material and properties. Supports standard 4-layer and 6-layer templates, plus custom layer configurations.
Instructions
Generates a PCB stackup cross-section diagram and opens it in draw.io. Shows each layer as a color-coded horizontal rectangle with labels and material properties.
Available templates: 4layer: Standard 4-Layer (L1 Signal / L2 GND / L3 PWR / L4 Signal, FR-4) 6layer: Standard 6-Layer (L1 Signal / L2 GND / L3-L4 Signal / L5 PWR / L6 Signal, FR-4) custom: Provide your own layers array
Layer types and colors: copper: Signal (red), GND (blue), PWR (orange) - weight in oz prepreg: Light yellow with material properties (Dk, Df) core: Light gray with material properties (Dk, Df) soldermask: Green (outer surfaces)
Available materials: fr4, rogers_4003c, rogers_4350b, megtron6, isola_370hr Copper weights: 0.5oz (17.5um), 1oz (35um), 2oz (70um)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | PCB stackup template. Use 'custom' with the layers parameter for custom stackups. | |
| layers | No | Custom layer array (used when template is 'custom'). Each layer has type, and type-specific properties. | |
| title | No | Diagram title (defaults to template name) | |
| show_dimensions | No | Show thickness and material property annotations. Default: true | |
| board_width_mm | No | Board width in mm (annotation only, does not affect layer width) | |
| auto_open | No | Automatically open the diagram in draw.io. Set to false to return XML only. Default: true |