install_file
Download a user-confirmed .safetensors link from Hugging Face or Civitai into the matching ComfyUI library folder without overwriting existing files.
Instructions
Download a model file by link into ComfyUI's folder for one library kind.
Only after the user has confirmed this exact link. A LoRA works only with the image
model it was trained for: check that it was made for the active model in
get_guide. For the model kind (another version or fine-tune of the active image
model), the download must have the default model's weight layout, or it is
discarded; a model of another family is refused. Accepts https links to a
.safetensors file on huggingface.co or civitai.com; never replaces an existing
file. Access tokens come from easel's environment, never from chat. Afterwards
list_library shows the file.
Args:
url: The file's download link (huggingface.co .../resolve/... or civitai.com).
kind: A library kind from get_guide, such as lora or model.
name: File name to save as, ending in .safetensors. Omit to use the link's name.
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>"
},
"name": "install_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kind | No | lora | |
| name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |