tools.render_mermaid module
Render Mermaid diagrams to images via mermaid-cli and send to the current channel.
- async tools.render_mermaid.run(mermaid_diagram, format='png', ctx=None)[source]
Render a Mermaid diagram and send the image to the channel.
- Parameters:
mermaid_diagram (
str) – The Mermaid diagram definition as text.format (
str) – Output format (png or svg). Default: png.ctx (
ToolContext|None) – Tool execution context providing access to bot internals.
- Return type:
- Returns:
JSON string with success/error result.