list_huggingface_files
Browse and list all files in a Hugging Face repository, including details like file paths, sizes, and types. Filter by pattern, sort by size, name, or type, and explore specific directories.
Instructions
列出 HuggingFace 仓库中的所有文件,包括文件路径、大小、类型等详细信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 仓库内的子路径(可选,用于浏览特定目录) | |
| pattern | No | 文件名过滤模式(glob 模式),例如: *.safetensors, *.json | |
| repo_id | Yes | HuggingFace 仓库 ID,格式:用户名/模型名 | |
| revision | No | Git 分支或标签,默认为 main | main |
| sort_by | No | 排序方式: size(按大小), name(按名称), type(按类型) | name |
Input Schema (JSON Schema)
{
"properties": {
"path": {
"description": "仓库内的子路径(可选,用于浏览特定目录)",
"type": "string"
},
"pattern": {
"description": "文件名过滤模式(glob 模式),例如: *.safetensors, *.json",
"type": "string"
},
"repo_id": {
"description": "HuggingFace 仓库 ID,格式:用户名/模型名",
"examples": [
"2Noise/ChatTTS",
"microsoft/DialoGPT-medium",
"openai/whisper-large-v3"
],
"type": "string"
},
"revision": {
"default": "main",
"description": "Git 分支或标签,默认为 main",
"type": "string"
},
"sort_by": {
"default": "name",
"description": "排序方式: size(按大小), name(按名称), type(按类型)",
"enum": [
"size",
"name",
"type"
],
"type": "string"
}
},
"required": [
"repo_id"
],
"type": "object"
}