strip_workflow
Resolve Get/Set buses, Reroutes, and bypassed nodes to produce a clean API graph from any server-side workflow file or inline JSON.
Instructions
Strip a workflow to a clean, flat API graph — resolving Get/Set buses, Reroutes, subgraph definitions, and bypassed/muted nodes into real connections (the 'de-getter-setter' pass). Unlike get_workflow, this reads from ANY server-side file path on disk (not just the cached workflow library), so it loads ad-hoc / expert workflow files that workflow_list and panel_open_workflow can't resolve. Provide exactly one of: path, filename, or graph. Returns conversion warnings, a node-type summary, and the stripped graph (much smaller than the raw UI JSON).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute server-side path to a workflow .json on disk (e.g. C:\\Users\\you\\ComfyUI\\user\\default\\workflows\\pusa_extend.json). Read directly from disk — no library lookup. | |
| graph | No | Inline UI-format workflow JSON, as an alternative to path/filename. | |
| format | No | 'api' (default) strips to the flat resolved graph; 'raw' returns the file/graph unchanged. | api |
| filename | No | Workflow filename in the ComfyUI userdata library, as an alternative to path. |