download_model
Download a model file from a URL (HuggingFace or direct link) to a specified subfolder in the ComfyUI models directory, with an optional filename override.
Instructions
Download a model file to the ComfyUI models directory from a URL (HuggingFace or direct link)
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": {
"url": "<url>",
"target_subfolder": "<target_subfolder>"
},
"name": "download_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Direct download URL for the model file | |
| filename | No | Override filename (auto-detected from URL if omitted) | |
| target_subfolder | Yes | Target subfolder under ComfyUI models/ (e.g. 'checkpoints', 'loras', 'vae') |