Skip to main content
Glama

MCP HuggingFetch

by freefish1218

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

NameRequiredDescriptionDefault
pathNo仓库内的子路径(可选,用于浏览特定目录)
patternNo文件名过滤模式(glob 模式),例如: *.safetensors, *.json
repo_idYesHuggingFace 仓库 ID,格式:用户名/模型名
revisionNoGit 分支或标签,默认为 mainmain
sort_byNo排序方式: 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" }

Other Tools from MCP HuggingFetch

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/freefish1218/mcp-huggingfetch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server