export_workflow_json
Export a ComfyUI workflow as JSON in UI or API format, optionally writing it to a file path for sharing or POST /prompt automation.
Instructions
The workflow as JSON: 'ui' (shareable, opens in the editor, keeps layout & notes) or 'api' (for POST /prompt automation).
Pass path to also write the JSON to a file; the dict then reports saved_to instead of embedding the graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| format | No | ui | |
| workflow_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||