get_template
Fetch a workflow template as a starting point from the online catalog or installed packs, returned as compact FlowZip or full JSON for adaptation.
Instructions
Fetch one workflow template as a known-good starting point.
source="online" (default): from the official GitHub catalog — no install
needed; pack is ignored. source="installed": from this ComfyUI (pack
required).
fmt="flowzip" (default): compact FlowZip text — ~72% fewer tokens than the raw litegraph JSON (median), enough to read/adapt the graph. fmt="json": the full litegraph. Either way it's litegraph, NOT the API/prompt format submit_workflow needs — adapt to API (resolve passthroughs, widgets_values -> named inputs via get_node), or inflate a FlowZip with inflate_workflow. If from the online catalog, first confirm you have its nodes/models — run find_missing_nodes then install_node_pack, or verify with list_nodes/list_models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | flowzip | |
| name | Yes | ||
| pack | No | ||
| source | No | online |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |