check_workflow_runtime
Determine whether a workflow runs locally (free) or uses paid API nodes. Scans node class types and returns runtime status to avoid unexpected credit use.
Instructions
Determine whether a workflow runs on the user's OWN GPU (LOCAL — free) or uses hosted API NODES (PAID api credits). Pass pack (a bundled pack name — always local/free) OR graph (a UI or API/prompt workflow JSON, as object or string). It scans the workflow's node class_types against the connected ComfyUI's API-node set (the same signal list_api_nodes uses) and returns { runtime: 'local'|'api'|'mixed'|'unknown', usesApiNodes, apiNodes[], unknownNodes[] } — 'unknown' means some nodes couldn't be classified (could be paid), so treat it (and 'api'/'mixed') as POSSIBLY PAID; only 'local' is confirmed free. ALWAYS call this before building OR loading a non-pack/ad-hoc workflow so you can ASK the user before spending paid API credits — never silently use API nodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | A bundled pack name (from list_packs). Packs are local/free; this confirms it from the actual graph. | |
| graph | No | A workflow graph to classify (UI or API/prompt format), as an object or a JSON string. Use this for ad-hoc/generated workflows. |