convert_diagram_format
Converts diagram code between formats such as Mermaid, PlantUML, and Python Diagrams, enabling reuse of existing diagrams across supported diagramming tools.
Instructions
Convert a diagram from one format to another.
Args:
diagram_code: Existing diagram code to convert
from_format: Source format (e.g., "mermaid", "plantuml")
to_format: Target format (e.g., "mermaid", "plantuml", "python_diagrams")
diagram_type: Type of diagram ("sequence", "flowchart", "class")
Returns:
Dictionary with converted diagram code
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"diagram_code": "<diagram_code>",
"from_format": "<from_format>",
"to_format": "<to_format>",
"diagram_type": "<diagram_type>"
},
"name": "convert_diagram_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_format | Yes | ||
| from_format | Yes | ||
| diagram_code | Yes | ||
| diagram_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |