Hub Repository Details
hub_repo_detailsGet details for one or more Hugging Face repos (model, dataset, or space). Auto-detects type unless specified. For datasets, use operations: overview, dataset_structure, dataset_preview. Use dataset_structure first to discover configs, splits, sizes, and schema. Use dataset_preview only when config and split are known, unless the dataset has a single config/split.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Row count for dataset_preview. Defaults to 5 and is clamped to 1-100. | |
| split | No | Dataset Viewer split. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure. | |
| config | No | Dataset Viewer config. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure. | |
| offset | No | Row offset for dataset_preview. Defaults to 0. | |
| repo_ids | Yes | Repo IDs for (models|dataset/space) - usually in author/name format (e.g. openai/gpt-oss-120b) | |
| repo_type | No | Specify lookup type; otherwise auto-detects | |
| operations | No | Details to return. Defaults to ["overview"]. For datasets, prefer ["overview", "dataset_structure"] first; then call ["dataset_preview"] with config and split. |