comfyui_validate_workflow
Check a ComfyUI workflow for structural errors, missing nodes, security risks, and suspicious inputs. Receive a validity flag, detailed errors, warnings, and pipeline type.
Instructions
Validate a ComfyUI workflow for structural correctness and security.
Checks: node structure, connection references, installed node types,
available models, dangerous nodes, and suspicious inputs.
Args:
workflow (required): JSON string of the workflow to validate.
Returns:
Dict with keys:
- ``valid`` (bool): True only if there are zero entries in ``errors``.
- ``errors`` (list[str]): blocking issues — invalid structure,
connections that reference nonexistent nodes, ``class_type``
not installed on the connected server, missing required
inputs, security blocks, etc. Each entry is a human-readable
string identifying the offending node id and what's wrong.
- ``warnings`` (list[str]): non-blocking concerns — missing model
files, dangerous node names, suspicious input patterns
(e.g. ``__import__``), or a server-unreachable note when the
installed-class_type check has to be skipped.
- ``node_count`` (int): number of nodes in the workflow.
- ``pipeline`` (str): coarse type — one of ``txt2img``,
``img2img``, ``upscale``, ``img2img -> upscale``,
``txt2img -> upscale``, or ``unknown``. (For the full
structural breakdown, use ``comfyui_analyze_workflow``.)
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": {
"workflow": "<workflow>"
},
"name": "comfyui_validate_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||