Export flow
export_flowExport a saved Wavelength flow in the requested format. mermaid returns a Mermaid flowchart string. json returns the title, graph_nodes, and graph_edges. svg returns a self-contained SVG with node shapes, colors, and arrows. drawio returns a valid mxfile/mxGraphModel XML for draw.io. SVG and drawio use stored node positions, or auto-layout when the flow has none. No flow content is sent to any third-party service.
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": {
"flow_id": "<flow_id>",
"format": "<format>"
},
"name": "export_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | The export format: mermaid, json, svg, or drawio. | |
| flow_id | Yes | The id of the flow to export. |