Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo
raw_markdownNo
output_formatNosvg
themeNolight
lookNodefault
scaleNo
output_dirNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rutika196/vizdown-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server