hf_download
Download a single file or a full Hugging Face Hub repository to a local directory for offline access, inspection, or local training.
Instructions
Download one file (or, with no filename, a whole repo) from the Hub to the local machine.
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": {
"repo_id": "<repo_id>",
"local_dir": "<local_dir>"
},
"name": "hf_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | ||
| filename | No | ||
| local_dir | Yes | ||
| repo_type | No | model |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |