Render one diagram
render_figureRender an in-article diagram as a crisp 2x PNG by selecting a template and filling its slots.
Instructions
Render a single in-article diagram to a PNG. Provide the template name and its slots (see list_templates for each template's slot schema). Returns the file path. Renders at 2x for crisp output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | ||
| slots | Yes | ||
| out_path | No | Optional filename or sub-path written INTO the output dir (confined to it). |