modelhub-port
v0.1.0Search and inspect Hugging Face models, datasets, spaces, papers and docs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hf_whoami
Return the Hugging Face account that the configured HF_TOKEN belongs to.
hub_repo_details
Get details for a Hugging Face model, dataset, or space repository.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | The repository identifier (e.g. 'owner/name') to retrieve details for. |
repo_type | string | Optional repository type selecting the namespace: 'models', 'datasets', or 'spaces' (default 'models'; singular forms are also accepted). |
revision | string | Optional revision (branch, tag, or commit) to query for this repository. |
hub_repo_search
Search Hugging Face models, datasets, or spaces with optional filters.
| Parameter | Type | Description |
|---|---|---|
author | string | Optional author or organization name to filter results to. |
direction | number | Optional sort direction sent to the Hub API (floored to an integer, e.g. -1 for descending). |
limit | number | Optional maximum number of results to return (default 20, clamped to 1-100). |
repo_type | string | Optional repository type to search: 'models', 'datasets', or 'spaces' (default 'models'; singular forms are also accepted). |
search | string | Optional keyword search term matched against repository names and metadata. |
sort | string | Optional field to sort results by, as accepted by the Hugging Face Hub API. |
paper_search
Search Hugging Face papers by keyword.
| Parameter | Type | Description |
|---|---|---|
query * | string | The keyword query to search Hugging Face papers by. |
limit | number | Optional maximum number of papers to return (default 10, clamped to 1-50). |
hf_doc_search
Search the Hugging Face documentation.
| Parameter | Type | Description |
|---|---|---|
query * | string | The keyword query to search the Hugging Face documentation by. |
limit | number | Optional maximum number of documentation results to return (default 10, clamped to 1-50). |
hf_doc_fetch
Fetch a Hugging Face documentation page and return its text.
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL of the Hugging Face documentation page to fetch (must be a https://huggingface.co/docs/... page). |
list_repo_files
List files in a Hugging Face model, dataset, or space repository.
| Parameter | Type | Description |
|---|---|---|
repo_id * | string | The repository identifier (e.g. 'owner/name') whose files to list. |
path | string | Optional subdirectory path within the repository to list files under. |
repo_type | string | Optional repository type selecting the namespace: 'models', 'datasets', or 'spaces' (default 'models'; singular forms are also accepted). |
revision | string | Optional revision (branch, tag, or commit) whose file tree to list (default 'main'). |