Export the diagram
export_diagramExports the open BPMN diagram as a BPMN, SVG, PNG, or PDF file, saving it to the server's exports folder or offering a user download when a file is requested.
Instructions
Exports the open diagram as a file, exactly like the editor's Export menu: bpmn (BPMN 2.0 XML), svg, png (2x, white background) or pdf (vector). When the editor runs with its server, the file is saved in the exports folder of the server; an existing file is never replaced ("Name (2).pdf" is added next to it). The editor also shows the user a Download button: nothing is downloaded unless they click it. The file content is not returned. Use it only when the user asks for a file.
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": {
"format": "<format>"
},
"name": "export_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name without extension. Default: the name of the diagram in the editor | |
| format | Yes | File format |