Render Diagram
render_diagramRenders a diagram as an MCP image and returns a server-side file path, so the figure appears in chat or can be uploaded directly without copying base64 data.
Instructions
Render a diagram and return it as an MCP image plus the server-side file path. Use this instead of generate_uml when the figure should appear in chat or be uploaded: the image needs no base64 copying in the conversation, and local_path is a file the wiki writer can upload directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| scale | No | ||
| theme | No | ||
| diagram_type | Yes | ||
| output_format | No | svg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |