design_diagram
Render a positioned diagram spec in Microsoft Visio and export .vsdx and .png files. Optionally draw with primitive shapes when the required stencil is not installed.
Instructions
PHASE 3 of diagram generation. Renders the positioned spec in Visio and saves .vsdx plus .png. Resolves the diagram type's stencil first; if it is not installed this returns status "needs_download" and renders nothing unless allow_primitive_fallback=true. Visio stays open and visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The positioned spec from plan_diagram. | |
| out_dir | No | Output directory. Default: current working directory. | |
| png_dpi | No | PNG export resolution. Default: 150. | |
| out_basename | No | Output file base name (no extension). Default: "diagram". | |
| allow_primitive_fallback | No | Draw with primitives if the stencil is not installed. Default: false. |