Export Workflow File
export_workflowExport an owned saved workflow or a supplied valid spec without generation credits. Returns a file resource, not an embedded app. Use explicit export only when requested; normal conversational compilation returns Mermaid for the host to render. PDF remains vector. Requires workflow:read.
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_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of a saved workflow owned by the current account. | |
| spec | No | A source-cited VisualSpec v0.1. Preserve original excerpts and attribution. | |
| style | No | Unseen-rendered style; Mermaid appearance is controlled by the chatbot's renderer. | |
| format | Yes | ||
| viewMode | No | Unseen-rendered layout. Snake wrapping and swimlane geometry are not encoded in Mermaid. | |
| authToken | No | Optional existing session token for non-OAuth transports. | |
| orientation | No | Mermaid emits TD for portrait or LR for landscape; choose uses existing auto-orientation. Final geometry depends on the host renderer. | |
| layoutOverrides | No | Existing canvas positions/sizes keyed by node ID; coordinates and sizes must be finite and bounded. Not encoded in Mermaid. |