comfy_models
List installed models, download models from Hugging Face with SHA-256 verification, check GPU VRAM, and verify system health for ComfyUI workflows.
Instructions
Manage local models, download from Hugging Face (hash-verified), and check GPU VRAM.
Return Format
{"success": bool, "models": [...], "download": {...}, "vram": {...}, "health": {...}}
Examples
comfy_models(operation="list_installed")
comfy_models(operation="check_vram", model_vram_gb=6.0)
comfy_models(operation="download", hf_repo="org/model", filename="m.safetensors",
target="diffusion_models", sha256="<hash>")
comfy_models(operation="health")Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | Expected sha256 of the file (verified when provided). | |
| target | No | ComfyUI model subdir (checkpoints, diffusion_models, loras, text_encoders, vae, upscale_models). | |
| hf_repo | No | Hugging Face repo id for download (e.g. 'black-forest-labs/FLUX.1-schnell'). | |
| filename | No | File name within the repo for download. | |
| dest_name | No | Optional destination filename (defaults to filename). | |
| operation | Yes | Operation to perform. | |
| model_vram_gb | No | Estimated VRAM for check_vram. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||