list_dataset_files
Pack: huggingface · Endpoint: https://gateway.pipeworx.io/huggingface/mcp
List files in a Hugging Face dataset repository by repo_id and optional revision/subdirectory path; returns filename, size, and blob SHA for each file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
repo_id | string | yes | |
revision | string | no | |
path | string | no |
Example call
Arguments
{
"repo_id": "wikitext"
}
curl
curl -X POST https://gateway.pipeworx.io/huggingface/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_dataset_files","arguments":{"repo_id":"wikitext"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_dataset_files', {
"repo_id": "wikitext"
});
More examples
{
"repo_id": "openwebtext/openwebtext",
"path": "data"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "List of files in a dataset repository"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"huggingface": {
"url": "https://gateway.pipeworx.io/huggingface/mcp"
}
}
}
See Getting Started for client-specific install steps.