design_preview_plan
Render a DesignPlan as an SVG preview without emitting to Altium, letting you sanity-check placement and wiring before committing to a full schematic emit.
Instructions
Render a DesignPlan to SVG without emitting to Altium.
Same pipeline as design_execute_plan(use_canvas=True) minus
the place + wire + save IPC pass. Symbol extraction still
consults Altium on cache miss (it has to read the SchLib), but
no project is created and nothing is placed. Use this to
sanity-check a layout cheaply before committing to a full emit.
Args:
plan_json: DesignPlan as JSON string or dict.
output_svg_path: Where to write the SVG. Default:
<repo>/.symbol_cache/preview.svg.
placement_hints: Optional {refdes: {"x", "y", "rotation"}}
partial anchors, same as design_execute_plan: hinted
refdes pin to the supplied position, the rest run through
algorithmic placement. Iterate preview→hints→preview to
refine a layout before a full emit.
Returns: Dict with ok / preview_svg_path / canvas (snapshot) / counts {placements, wires, labels, power_ports, junctions} / notes / failures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_json | Yes | ||
| output_svg_path | No | ||
| placement_hints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||