render_all_diagrams
Render all diagram blocks in a Markdown file to SVG, PNG, JPEG, or PDF formats. Parses the document, finds every diagram, and saves output files with customizable themes and styles.
Instructions
Render ALL diagram blocks found in a Markdown file.
Parses the entire document, finds every diagram block, renders each separately, and optionally saves output files.
Args: file_path: Path to a .md file. raw_markdown: Raw markdown string. output_format: "svg", "png", "jpeg", or "pdf". theme: "light" or "dark". look: "default" or "handDrawn". scale: Resolution multiplier for raster output. output_dir: Directory to save rendered files. Files are named {stem}{type}{index}.{format}.
Returns: List of result dicts, each with diagram_type, index, and base64 output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | ||
| raw_markdown | No | ||
| output_format | No | svg | |
| theme | No | light | |
| look | No | default | |
| scale | No | ||
| output_dir | No |