search_models
List and search model files in your local ComfyUI installation. Use a filename query or specify a folder to verify which models exist before downloading.
Instructions
Search / list model files available to the LOCAL ComfyUI install.
Three modes: query -> comfy models search --text <query>
(filename match, all folders on v1.14.0+, checkpoints only below the
floor); else folder -> comfy models list-folder <folder>; else ->
comfy models list-folders (folder names).
query tokens match word-order-independently and ignore - _
. separators, so "sdxl base" finds sd_xl_base_1.0.safetensors.
That needs a comfy-cli NEWER than v1.15.0 (Comfy-Org/comfy-cli#684,
merged after v1.15.0 was cut); on v1.15.0 and older the whole query is
one substring, so search a single word there.
RESPONSE SHAPE DIFFERS BY MODE: query returns {rows: [...]},
folder returns {files: [...]}. Filenames only — no base-model/
hash/description enrichment.
Freshness: LIVE — re-read from disk every call; filenames only, no
registry metadata, so an absent name never means "no such model". It is
either (a) present but outside what this call searched (each mode looks
narrower than "the install" — re-check with folder="loras"/"vae"
before concluding anything, since acting wrong triggers a redundant
multi-GB download), or (b) genuinely not downloaded — use
download_model, which refuses on a remote target rather than write to
a disk it can't read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| folder | No |