drawio_codec
Use decode mode to convert compressed draw.io payloads to XML, or encode XML back to draw.io format for editable diagrams.
Instructions
[draw.io: diagrams (flowcharts, block diagrams, architecture, UML, network) as editable files and PNG/SVG/PDF] Decode a compressed payload to XML (mode=decode) or compress XML to draw.io format (mode=encode).
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": {
"text": "<text>"
},
"name": "drawio_codec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | decode | |
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||