list_models
List the real model files a ComfyUI loader node offers, preventing hallucinated filenames by reading the loader's enum from object_info.
Instructions
List the real model files a loader offers (loop step: never hallucinate a checkpoint/LoRA/VAE filename).
Reads the loader's enum from object_info (handles both the legacy list and the newer COMBO encoding). If input_name is omitted, reports every enum-typed input on the node. Pick ONLY from the returned list.
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": {
"class_name": "<class_name>"
},
"name": "list_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_name | Yes | ||
| input_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |