Mapping: OpenAI bouquet → PTC tools
Each operation of the 11 legacy tools (left) maps to one or more PTC tools (right). Bars count benchmark prompts per tool. Hover or click a node to trace it.
Capability table (57 equivalent, 13 equivalent + server-side improvement, 4 equivalent by client composition, 3 partial (see note))
| Legacy tool | Operation | PTC tool(s) | Note |
|---|---|---|---|
hf_fs | ls repo/bucket dir (recursive, glob, type, offset/limit, @revision) | hf_repo_list_files | |
hf_fs | ls hf://{models,datasets,spaces}/OWNER (+ --sort) | hf_models_search hf_datasets_search hf_spaces_list | authorsAny + explicit sort (legacy default lastModified). |
hf_fs | ls hf://buckets/OWNER | hf_buckets_list | |
hf_fs | ls hf://{models,datasets,spaces}/trending | hf_trending | |
hf_fs | find in repo (--name/--path glob, --type) | hf_repo_list_files hf_repo_list_files | Server path index; glob fallback. |
hf_fs | find in owner namespace (name glob) | hf_models_search hf_datasets_search hf_spaces_list | query prefix + local glob over pages. |
hf_fs | search models/datasets/spaces (+OWNER, --tag, --sort, limit<=1000) | hf_models_search hf_datasets_search hf_spaces_list | 1,000-item searches become cursor loops; likes30d sort to be added. |
hf_fs | search hf://spaces QUERY / --kind mcp (semantic) | hf_spaces_search hf_spaces_list | Upstream semantic search needs a query or category and ORs tags: tag-only / all-tags requests go to hf_spaces_list (tagsAll) or a local filter. |
hf_fs | search hf://collections[/OWNER] | hf_collections_search | |
hf_fs | cat repo/bucket text file (--offset, --max-bytes) | hf_repo_read_text | |
hf_fs | attach JPEG/PNG/WebP (8 MiB batch budget) | hf_repo_read_image | Per-call budget; batch admission semantics change. |
hf_fs | stat file / dir / repo root / link | hf_repo_paths_info hf_repo_info | |
hf_fs | search hf://papers QUERY | hf_papers_search | |
hf_fs | ls hf://papers/daily/latest | YYYY/MM/DD | hf_daily_papers | Adds week/month/submitter. |
hf_fs | ls hf://papers/trending (limit<=100) | hf_daily_papers | sort=trending. |
hf_fs | cat papers/ID/metadata.json, ls papers/ID (linked repos) | hf_paper_get | |
hf_fs | cat papers/ID/paper.md | hf_paper_read | |
hf_fs | ls/cat/stat inside a collection (items, links, history) | hf_collection_get | |
hf_fs | ls/find hf://docs (llms.txt manifests) | hf_docs_read | |
hf_fs | search hf://docs[/product/...] | hf_docs_search | |
hf_fs | cat docs page / #anchor section | hf_docs_read | |
hf_fs | cat hf://README.md and papers README (usage guidance) | PTC engine / descriptions | Superseded by tool descriptions/server instructions: approved-difference candidate. |
hf_fs | batch <=30 ops, bounded parallelism, ordered partial failures | PTC engine / descriptions | Provided by the PTC execution engine (asyncio.gather + per-call errors). |
hf_fs | accept hf:// URIs and huggingface.co web URLs (blob/resolve/tree) | hf_repo_info hf_repo_list_files hf_repo_read_text hf_repo_paths_info | Shared ref parser across repository tools. |
hub_repo_details | overview for <=10 repos, model/dataset/space, auto-detect | hf_repo_info hf_models_search hf_spaces_list | Listing idsAny lacks cardData/vocab_size: hf_repo_info is the full replacement. |
hub_repo_details | dataset_structure (configs, splits, sizes, parquet, schema) | hf_dataset_structure | |
hub_repo_details | dataset_preview (config, split, offset, limit<=100) | hf_dataset_rows | Adds server-side filter/search. |
hub_repo_search | query/author/filters/sort/limit across repo types | hf_models_search hf_datasets_search hf_spaces_list | One call per repo type. |
create_repo | create model/dataset/Space (sdk, private) or bucket | hf_repo_create | |
create_repo | Space hardware at creation (ZeroGPU, paid) | hf_repo_create hf_hardware_flavors | |
create_repo | duplicate via source_uri (visibility, hardware) | hf_repo_create | |
dynamic_space | find MCP Spaces (semantic + mcp kind) | hf_spaces_search | mcpOnly=true. |
dynamic_space | view_parameters (first/selected tool schema) | hf_space_tools | |
dynamic_space | invoke with params, file URLs, media results, progress | hf_space_invoke | |
dynamic_space | discover curated catalog (DYNAMIC_SPACE_DATA mode) | hf_spaces_search | |
hf_jobs | run (image / Space image, argv, flavor, timeout, env, secrets, volumes, labels) | hf_job_run | |
hf_jobs | uv (script, deps, python) | hf_job_run | |
hf_jobs | ps | hf_jobs_list | |
hf_jobs | inspect | hf_job_get | |
hf_jobs | logs (tail / follow) | hf_job_logs | |
hf_jobs | cancel | hf_job_cancel | |
hf_jobs | update-labels / scheduled update-labels | hf_job_update | |
hf_jobs | scheduled run / scheduled uv | hf_job_schedule | |
hf_jobs | scheduled ps | hf_jobs_list | |
hf_jobs | scheduled inspect | hf_job_get | |
hf_jobs | scheduled delete / suspend / resume | hf_job_cancel hf_job_update | run_now added. |
hf_sandbox | create (image, flavor, timeout, volumes, bucket, token forwarding) | hf_sandbox_create | |
hf_sandbox | status | hf_sandbox_status | |
hf_sandbox | terminate | hf_sandbox_terminate | |
hf_sandbox | ps (detached processes) | hf_sandbox_status | |
hf_sandbox | kill | hf_sandbox_kill | |
hf_sandbox_exec | exec (workdir, stdin, env, timeout, detach, tag, progress) | hf_sandbox_exec | |
hf_sandbox_fs | ls | hf_sandbox_fs_read | |
hf_sandbox_fs | cat (offset, max-bytes) | hf_sandbox_fs_read | |
hf_sandbox_fs | stat | hf_sandbox_fs_read | |
hf_sandbox_fs | write (text / base64) | hf_sandbox_fs_write | |
hf_sandbox_fs | rm | hf_sandbox_fs_write | |
hf_sandbox_fs | mkdir | hf_sandbox_fs_write | |
hf_whoami | account, orgs, plan | hf_whoami | |
hf_fs_write | put (text/base64, branch, create-pr, parent-commit; buckets) | hf_repo_write_files | |
hf_fs_write | rm (commit/PR options; buckets) | hf_repo_write_files |
Chaining: the hf:// thread
Every record carries kind, id, uri and url. Every argument that names a Hub resource accepts that uri unchanged (IDs and huggingface.co URLs also work).
| form | names | returned by | accepted by |
|---|---|---|---|
hf://models/{owner}/{name} | model repo | hf_models_search hf_trending hf_repo_fulltext_search hf_hub_lookup hf_paper_get hf_collection_get hf_repo_info | hf_repo_info hf_repo_list_files hf_repo_paths_info hf_repo_history hf_collections_search hf_repo_create hf_repo_write_files hf_job_run hf_sandbox_create |
hf://datasets/{owner}/{name} | dataset repo | hf_datasets_search hf_trending hf_repo_fulltext_search hf_hub_lookup hf_paper_get hf_collection_get hf_repo_info | hf_repo_info hf_repo_list_files hf_dataset_structure hf_dataset_rows hf_collections_search hf_repo_write_files hf_job_run hf_sandbox_create |
hf://spaces/{owner}/{name} | Space repo | hf_spaces_list hf_spaces_search hf_trending hf_hub_lookup hf_paper_get hf_collection_get | hf_repo_info hf_repo_list_files hf_space_tools hf_space_invoke hf_repo_create hf_job_run |
hf://buckets/{owner}/{name} | bucket | hf_buckets_list hf_hub_lookup | hf_repo_info hf_repo_list_files hf_repo_paths_info hf_repo_write_files hf_job_run hf_sandbox_create |
hf://{type}/{owner}/{name}[@rev]/{path} | file or folder (revision optional) | hf_repo_list_files hf_repo_paths_info | hf_repo_read_text hf_repo_read_image hf_repo_paths_info hf_repo_list_files hf_job_run (volume) hf_sandbox_create (volume) |
hf://papers/{arxiv_id} | paper | hf_papers_search hf_daily_papers hf_hub_lookup hf_collection_get | hf_paper_get hf_paper_read hf_collections_search hf_models_search (papersAny) |
hf://collections/{owner}/{slug}-{id} | collection | hf_collections_search hf_hub_lookup | hf_collection_get |
hf://docs/{product}/{version}/{page}[#anchor] | documentation page/section | hf_docs_search hf_docs_read | hf_docs_read hf_docs_search (scope) |
Not hf://: Jobs (job + namespace (Hub job IDs; web URL returned as url)); Sandboxes (opaque sandbox handle from hf_sandbox_create; sandbox paths are local POSIX paths); Space tools (tool name inside a Space (from hf_space_tools)); Users / orgs (plain names or the profile-page URL that people records return as uri (accepted by every handle argument)).
Producer → consumer graph
Examples
Search, list files, read a file
found = await hf_models_search(query="Qwen3-8B", authorsAny=["Qwen"], sort="downloads", limit=1) repo = found["items"][0]["uri"] # e.g. hf://models/Qwen/Qwen3-8B files = await hf_repo_list_files(repo=repo, glob="*.json") config_uri = next(f["uri"] for f in files["items"] if f["path"] == "config.json") config = await hf_repo_read_text(uri=config_uri) # pass the returned uri unchanged print(config["content"][:500])
const found = await hf_models_search({ query: "Qwen3-8B", authorsAny: ["Qwen"], sort: "downloads", limit: 1 });
const repo = found.items[0].uri; // e.g. hf://models/Qwen/Qwen3-8B
const files = await hf_repo_list_files({ repo, glob: "*.json" });
const configUri = files.items.find((f) => f.path === "config.json")!.uri;
const config = await hf_repo_read_text({ uri: configUri }); // pass the returned uri unchanged
console.log(config.content.slice(0, 500));
Dataset structure, then rows
ds = (await hf_datasets_search(query="ultrachat", authorsAny=["HuggingFaceH4"], limit=1))["items"][0] info = await hf_dataset_structure(dataset=ds["uri"], include=["splits", "schema"]) first = info["splits"][0] rows = await hf_dataset_rows(dataset=ds["uri"], config=first["config"], split=first["split"], limit=3)
const ds = (await hf_datasets_search({ query: "ultrachat", authorsAny: ["HuggingFaceH4"], limit: 1 })).items[0];
const info = await hf_dataset_structure({ dataset: ds.uri, include: ["splits", "schema"] });
const first = info.splits![0];
const rows = await hf_dataset_rows({ dataset: ds.uri, config: first.config, split: first.split, limit: 3 });
Page with nextCursor (other arguments unchanged)
ids, cursor = [], None
while True:
page = await hf_spaces_list(authorsAny=["black-forest-labs"], sort="likes", limit=100, cursor=cursor)
ids += [s["id"] for s in page["items"]]
cursor = page["nextCursor"]
if not cursor:
breakconst ids: string[] = [];
let cursor: string | undefined;
do {
const page = await hf_spaces_list({ authorsAny: ["black-forest-labs"], sort: "likes", limit: 100, cursor });
ids.push(...page.items.map((s) => s.id));
cursor = page.nextCursor ?? undefined;
} while (cursor);
Paper to models, likers to profiles
paper = (await hf_paper_get(papers=["2505.09388"]))["items"][0] models = await hf_models_search(papersAny=[paper["uri"]], sort="downloads", limit=5) # hf://papers/... accepted likers = await hf_repo_likers(repo=models["items"][0]["uri"], limit=20) profiles = await hf_profile_get(handles=[u["id"] for u in likers["items"]]) # people are plain handles
const paper = (await hf_paper_get({ papers: ["2505.09388"] })).items[0];
const models = await hf_models_search({ papersAny: [paper.uri], sort: "downloads", limit: 5 }); // hf://papers/... accepted
const likers = await hf_repo_likers({ repo: models.items[0].uri, limit: 20 });
const profiles = await hf_profile_get({ handles: likers.items.map((u) => u.id) }); // people are plain handles
Mount a returned uri into a Job
job = await hf_job_run(
command=["/bin/sh", "-lc", "ls -la /data | head"],
volumes=[ds["uri"] + ":/data:ro"], # hf://datasets/...:/data:ro
flavor="cpu-basic",
)
logs = await hf_job_logs(job=job["job"]["id"], tail=50)const job = await hf_job_run({
command: ["/bin/sh", "-lc", "ls -la /data | head"],
volumes: [`${ds.uri}:/data:ro`], // hf://datasets/...:/data:ro
flavor: "cpu-basic",
});
const logs = await hf_job_logs({ job: job.job.id, tail: 50 });
Chain check
A static checker loads the tool registry and passes each returned id/uri to every argument that takes one, using the real argument parsers (commit 9166afc).
9 chains
of 5,625 carrying a Hub identity
0 consumers with no producer
Named chains
| chain | producer field → consumer argument | result |
|---|---|---|
| search-inspect-read models search -> repo info -> list files -> read file -> history | hf_models_search:items[].uri → hf_repo_info.repos | pass |
hf_repo_info:items[].uri → hf_repo_list_files.repo | pass | |
hf_repo_list_files:items[].uri → hf_repo_read_text.uri | pass | |
hf_repo_read_text:uri → hf_repo_history.repo | pass | |
hf_repo_history:items[].id → hf_repo_list_files.revision | pass | |
| lineage model -> base model / training dataset -> dataset structure -> rows | hf_repo_info:items[].baseModels[].uri → hf_repo_info.repos | pass |
hf_repo_info:items[].datasets[].uri → hf_dataset_structure.dataset | pass | |
hf_dataset_structure:splits[].config → hf_dataset_rows.config | pass | |
hf_dataset_structure:splits[].split → hf_dataset_rows.split | pass | |
| papers-repos paper <-> models/datasets/spaces | hf_papers_search:items[].uri → hf_paper_get.papers | pass |
hf_paper_get:items[].linked.models.items[].uri → hf_repo_info.repos | pass | |
hf_paper_get:items[].id → hf_models_search.papersAny | pass | |
hf_repo_info:items[].tags → hf_paper_get.papers | pass | |
hf_paper_get:items[].uri → hf_collections_search.contains | pass | |
hf_repo_info:items[].tags → hf_models_search.papersAny | pass | |
| collections collections <-> items | hf_repo_info:items[].uri → hf_collections_search.contains | pass |
hf_collections_search:items[].uri → hf_collection_get.collection | pass | |
hf_collection_get:items[].uri → hf_repo_info.repos | pass | |
hf_collection_get:items[].uri → hf_paper_get.papers | pass | |
hf_collection_get:items[].uri → hf_collection_get.collection | pass | |
hf_collection_get:owner → hf_profile_get.handles | pass | |
| people people -> repos -> discussions -> discussion | hf_models_search:items[].author → hf_profile_get.handles | pass |
hf_profile_get:items[].uri → hf_follow_graph.handle | pass | |
hf_follow_graph:items[].uri → hf_user_likes.handle | pass | |
hf_user_likes:items[].uri → hf_repo_likers.repo | pass | |
hf_repo_likers:items[].uri → hf_profile_get.handles | pass | |
hf_profile_get:items[].organizations[].uri → hf_org_members.handle | pass | |
hf_org_members:items[].uri → hf_activity.handle | pass | |
hf_activity:items[].target.uri → hf_repo_info.repos | pass | |
hf_repo_info:items[].uri → hf_discussions_list.repo | pass | |
hf_discussions_list:items[].repo.uri → hf_discussion_get.discussion | pass | |
hf_discussions_list:items[].num → hf_discussion_get.num | pass | |
hf_discussions_list:items[].uri → hf_discussion_get.discussion | pass | |
hf_discussion_get:author → hf_profile_get.handles | pass | |
hf_daily_papers:items[].submittedBy → hf_daily_papers.submittedBy | pass | |
hf_profile_get:items[].uri → hf_models_search.authorsAny | pass | |
hf_profile_get:items[].organizations[].uri → hf_buckets_list.owner | pass | |
hf_org_members:items[].uri → hf_collections_search.ownersAny | pass | |
hf_follow_graph:items[].uri → hf_repo_fulltext_search.authorsAny | pass | |
hf_repo_likers:items[].uri → hf_daily_papers.submittedBy | pass | |
hf_repo_likers:items[].uri → hf_discussions_list.author | pass | |
hf_discussions_list:items[].id → hf_discussion_get.discussion | pass | |
hf_activity:items[].discussion.url → hf_discussion_get.discussion | pass | |
hf_repo_list_files:items[].uri → hf_discussions_list.repo | rejected | |
hf_repo_list_files:items[].uri → hf_repo_likers.repo | rejected | |
| spaces space search -> tools -> invoke | hf_spaces_search:items[].uri → hf_space_tools.space | pass |
hf_space_tools:tools[].name → hf_space_invoke.tool | pass | |
hf_spaces_list:items[].models[].id → hf_spaces_list.modelsAny | pass | |
hf_repo_info:items[].spaces[].uri → hf_space_tools.space | pass | |
| jobs jobs: flavor -> run -> get/logs/cancel; scheduled | hf_hardware_flavors:items[].id → hf_job_run.flavor | pass |
hf_whoami:organizations[].name → hf_job_run.namespace | pass | |
hf_job_run:job.id → hf_job_logs.job | pass | |
hf_job_run:job.url → hf_job_get.job | pass | |
hf_jobs_list:items[].id → hf_job_cancel.job | pass | |
hf_jobs_list:items[].kind → hf_job_get.kind | pass | |
hf_whoami:organizations[].name → hf_jobs_list.namespace | pass | |
hf_job_schedule:scheduledJob.id → hf_job_get.job (kind scheduled) | pass | |
| sandbox sandbox handle -> exec -> process -> kill | hf_sandbox_create:id → hf_sandbox_exec.sandbox | pass |
hf_sandbox_create:jobId → hf_sandbox_status.sandbox | pass | |
hf_sandbox_create:url → hf_sandbox_status.sandbox | rejected | |
hf_sandbox_exec:process.id → hf_sandbox_kill.process | pass | |
hf_sandbox_fs_read:items[].id → hf_sandbox_fs_read.path | pass | |
hf_buckets_list:items[].uri → hf_sandbox_create.bucket | pass | |
| discovery-misc lookup / fulltext / trending / docs | hf_hub_lookup:items[].uri → hf_repo_info.repos | pass |
hf_hub_lookup:items[].uri → hf_profile_get.handles | pass | |
hf_repo_fulltext_search:items[].fileUri → hf_repo_read_text.uri | pass | |
hf_repo_fulltext_search:items[].uri → hf_repo_fulltext_search.idsAny | pass | |
hf_buckets_list:items[].uri → hf_collections_search.contains | error:UNSUPPORTED | |
hf_trending:items[].uri → hf_repo_info.repos | pass | |
hf_docs_search:items[].uri → hf_docs_read.uri | unverified | |
hf_buckets_list:items[].uri → hf_repo_list_files.repo | pass | |
hf_repo_write_files:changes[].file.uri → hf_repo_read_text.uri | pass | |
hf_repo_create:repo.uri → hf_repo_write_files.repo | pass |
Name simplifications
One casing, one name per concept. Old spellings and common Python/REST names (repo_id, repo_type, author, search…) are still accepted as inputs but not advertised.
camelCase everywhere
Every argument, output key, paging field and fields/sort value is lowerCamelCase, including Hub-native names (pipeline_tag → pipelineTag). Tool names stay hf_*; opaque upstream data (config.json, dataset rows, job env) keeps its own keys.
fields/sort values renamedOne name per subject
| Subject | Argument | Was (still accepted) |
|---|---|---|
| any repository (model, dataset, Space, bucket) | repo / repos | ref, refs, uri (create), plus the existing repo_id... aliases |
| one dataset | dataset | unchanged |
| one Space | space | unchanged |
| one collection | collection | unchanged |
| one discussion or PR | discussion (+ optional num) | ref, repo (with num) |
| papers | paper / papers | paper_id, paper_ids, arxiv_id(s) |
| one job | job | job_id, id, job_url, url |
| one sandbox | sandbox | unchanged |
| a file or docs page | uri | unchanged |
| person(s) | handle / handles | user, org, entity, username, ... |
People: handle, owner and author
A user and an org cannot share a name, so every person argument is handle/handles. Person-valued outputs are plain name strings; people records are {kind: user|org, id, uri, url}.
| Role | Name | Where | Was |
|---|---|---|---|
| target person (whose profile, likes, followers...) | handle / handles | profile, follow graph, likes, org members, activity | handles, handle, user, org, entity |
| owning namespace of a repository (filter) | authorsAny | models/datasets/Spaces search, full-text search | authors_any, owners (full-text) |
| owning namespace of another resource (filter) | owner / ownersAny | buckets, discussions (owner mode) / collections search | owner, owners |
| creator (filter) | author, submittedBy | discussions / daily papers | author, submitter |
| account to act in | namespace | jobs, sandbox create | unchanged |
Shared conventions
| Concept | Convention |
|---|---|
| Filters | Named after the field they test: xxxAny (OR), xxxAll (AND), xxxMin / xxxMax; query for free text |
| Paging | limit for page size; nextCursor (reads: nextOffset); returnedCount counts this page |
| Completeness | completeness {hasMore, truncated?, reason?, hint?} plus per-tool extras |
| Lists and errors | Every list is items; one inline error shape {ref, error: {code, message}} |
| Timestamps | createdAt, lastModified, <verb>At (publishedAt, likedAt…) |
| Counts and sizes | numX (numRows, numComments); size stored bytes, bytes returned bytes |
Before and after
| Measure | Before | After |
|---|---|---|
| distinct argument names (53 tools) | 146 | 140 |
| person argument names | 11 | 8 |
| names for "a repository" in arguments | 7 | 5 |
| page-size names | 4 | 2 |
| timestamp names in outputs | 15 | 10 |
| shapes of a comment count | 3 | 1 |
| completeness keys (all tools) | 33 | 16 (4 core + 12 extras) |
| batch error shapes | 2 | 1 |
| tools with two continuations in one mode | 1 | 0 |
list results not called items | 2 | 0 |
distinct snake_case output names (excluding config.json keys) | 157 | 0 |
Per tool: old → new names
hf_models_search (23 arguments, 5 values, 26 output rename, 1 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
authors_any | authorsAny | rename | authors_any author authors owner owners | |
ids_any | idsAny | rename | ids_any ids repo_ids | |
arxiv_ids | papersAny | sprawl | arxiv_ids arxiv_id paper_ids papers | also accepts arxiv: tags |
tags_all | tagsAll | rename | tags_all tags filter filters | |
tags_any_groups | tagsAnyGroups | rename | tags_any_groups | |
libraries | librariesAll | sprawl | libraries library library_name | AND today |
languages | languagesAll | sprawl | languages language | AND today |
licenses | licensesAll | sprawl | licenses license | AND today |
providers_any | providersAny | rename | providers_any providers provider inference_provider | |
any_provider | anyProvider | rename | any_provider | |
parameters_min | numParametersMin | sprawl | parameters_min num_parameters_min min_parameters | record field numParameters |
parameters_max | numParametersMax | sprawl | parameters_max num_parameters_max max_parameters | |
parameters_exact | numParametersAny | sprawl | parameters_exact num_parameters | OR of exact counts |
created_at | createdAt | rename | created_at | |
created_at.gt | createdAt.gt | rename | — | |
created_at.gte | createdAt.gte | rename | — | |
created_at.lt | createdAt.lt | rename | — | |
created_at.lte | createdAt.lte | rename | — | |
base_model_relations | baseModelRelationsAny | sprawl | base_model_relations | OR |
base_models_all | baseModelsAll | rename | base_models_all | |
base_model_relation | baseModelRelation | rename | base_model_relation | |
datasets_any | datasetsAny | rename | datasets_any datasets trained_dataset | |
apps_any | appsAny | rename | apps_any |
fields / sort values
| argument | old | new | old still accepted | rule |
|---|---|---|---|---|
fields | pipeline_tag | pipelineTag | yes | |
fields | library_name | libraryName | yes | |
fields | inferenceProviderMapping | inferenceProviders | yes | |
fields | — | datasets (derived from dataset: tags; was training_datasets, returned with tags) | no | |
sort | num_parameters | numParameters | yes |
Output fields
| old | new | change | note |
|---|---|---|---|
next_cursor | nextCursor | rename | |
returned_count | returnedCount | rename | |
completeness.unknown_owners | completeness.unknownOwners | rename | |
items[].created_at | items[].createdAt | rename | |
items[].last_modified | items[].lastModified | rename | |
items[].trending_score | items[].trendingScore | rename | |
items[].downloads_all_time | items[].downloadsAllTime | rename | |
items[].pipeline_tag | items[].pipelineTag | rename | |
items[].library_name | items[].libraryName | rename | |
items[].num_parameters | items[].numParameters | rename | |
items[].transformers | items[].transformersInfo | rename | |
items[].transformers.auto_model | items[].transformersInfo.autoModel | rename | |
items[].transformers.pipeline_tag | items[].transformersInfo.pipelineTag | rename | |
items[].transformers.processor | items[].transformersInfo.processor | rename | |
items[].inference_providers | items[].inferenceProviders | rename | |
items[].inference_providers[].provider | items[].inferenceProviders[].provider | rename | |
items[].inference_providers[].providerId | items[].inferenceProviders[].providerId | rename | |
items[].inference_providers[].status | items[].inferenceProviders[].status | rename | |
items[].inference_providers[].task | items[].inferenceProviders[].task | rename | |
items[].inference_providers[].type | items[].inferenceProviders[].type | rename | |
items[].inference_providers[].isModelAuthor | items[].inferenceProviders[].isModelAuthor | rename | |
items[].base_models | items[].baseModels | shape | {relation, models[]} -> baseModels[] + baseModelRelation (as hf_repo_info) |
items[].training_datasets | items[].datasets | rename | |
items[].training_datasets[].kind | items[].datasets[].kind | rename | |
items[].training_datasets[].id | items[].datasets[].id | rename | |
items[].training_datasets[].uri | items[].datasets[].uri | rename | |
items[].training_datasets[].url | items[].datasets[].url | rename |
hf_datasets_search (13 arguments, 3 values, 11 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
authors_any | authorsAny | rename | authors_any author authors owner owners | |
ids_any | idsAny | rename | ids_any ids repo_ids | |
arxiv_ids | papersAny | sprawl | arxiv_ids arxiv_id paper_ids papers | also accepts arxiv: tags |
tags_all | tagsAll | rename | tags_all tags filter filters | |
tags_any_groups | tagsAnyGroups | rename | tags_any_groups | |
task_categories | taskCategoriesAll | sprawl | task_categories task_category | AND today |
size_categories | sizeCategoriesAll | sprawl | size_categories size_category | AND today |
modalities | modalitiesAll | sprawl | modalities modality | AND today |
formats | formatsAll | sprawl | formats format | AND today |
libraries | librariesAll | sprawl | libraries library library_name | AND today |
languages | languagesAll | sprawl | languages language | AND today |
licenses | licensesAll | sprawl | licenses license | AND today |
dataset_type | datasetType | rename | dataset_type |
fields / sort values
| argument | old | new | old still accepted | rule |
|---|---|---|---|---|
fields | paperswithcode_id | paperswithcodeId | yes | |
sort | rows | numRows | yes | |
sort | bytes | mainSize | yes |
Output fields
| old | new | change | note |
|---|---|---|---|
next_cursor | nextCursor | rename | |
returned_count | returnedCount | rename | |
completeness.unknown_owners | completeness.unknownOwners | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
items[].created_at | items[].createdAt | rename | |
items[].last_modified | items[].lastModified | rename | |
items[].trending_score | items[].trendingScore | rename | |
items[].downloads_all_time | items[].downloadsAllTime | rename | |
items[].rows | items[].numRows | rename | |
items[].bytes | items[].mainSize | rename | Hub name; was the only "bytes" meaning stored size |
items[].paperswithcode_id | items[].paperswithcodeId | rename |
hf_spaces_list (13 arguments, 1 value, 9 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
authors_any | authorsAny | rename | authors_any author authors owner owners | |
ids_any | idsAny | rename | ids_any ids repo_ids | |
arxiv_ids | papersAny | sprawl | arxiv_ids arxiv_id paper_ids papers | also accepts arxiv: tags |
tags_all | tagsAll | rename | tags_all tags filter filters | |
tags_any_groups | tagsAnyGroups | rename | tags_any_groups | |
sdks | sdksAny | sprawl | sdks sdk | OR today |
stages_any | stagesAny | rename | stages_any stages stage | |
running_only | runningOnly | rename | running_only | |
hardware_current_any | hardwareCurrentAny | rename | hardware_current_any | |
hardware_requested_any | hardwareRequestedAny | rename | hardware_requested_any | |
models_any | modelsAny | rename | models_any models | |
datasets_any | datasetsAny | rename | datasets_any datasets trained_dataset | |
mcp_only | mcpOnly | rename | mcp_only |
fields / sort values
| argument | old | new | old still accepted | rule |
|---|---|---|---|---|
fields | cardData | title + emoji + shortDescription | yes |
Output fields
| old | new | change | note |
|---|---|---|---|
next_cursor | nextCursor | rename | |
returned_count | returnedCount | rename | |
completeness.unknown_owners | completeness.unknownOwners | rename | |
items[].created_at | items[].createdAt | rename | |
items[].last_modified | items[].lastModified | rename | |
items[].trending_score | items[].trendingScore | rename | |
items[].short_description | items[].shortDescription | rename | |
items[].ai_short_description | items[].aiShortDescription | rename | |
items[].semantic_score | items[].semanticScore | rename |
hf_spaces_search (4 arguments, 10 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
sdks | sdksAny | sprawl | sdks sdk | OR today |
tags_any | tagsAny | rename | tags_any | |
include_non_running | includeNonRunning | rename | include_non_running | |
mcp_only | mcpOnly | rename | mcp_only |
Output fields
| old | new | change | note |
|---|---|---|---|
next_cursor | nextCursor | rename | |
returned_count | returnedCount | rename | |
items[].created_at | items[].createdAt | rename | |
items[].last_modified | items[].lastModified | rename | |
items[].trending_score | items[].trendingScore | rename | |
items[].short_description | items[].shortDescription | rename | |
items[].ai_short_description | items[].aiShortDescription | rename | |
items[].semantic_score | items[].semanticScore | rename | |
candidate_count | candidateCount | rename | |
eligible_count | eligibleCount | rename |
hf_trending (8 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
items[].pipeline_tag | items[].pipelineTag | rename | |
items[].num_parameters | items[].numParameters | rename | |
items[].last_modified | items[].lastModified | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
completeness.public_only | completeness.publicOnly | rename | |
completeness.estimated_total_hits | completeness.estimatedTotal | rename |
hf_repo_fulltext_search (3 arguments, 7 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
kinds | kindsAny | sprawl | kinds types repo_types | |
owners | authorsAny | sprawl | owners authors_any author authors owner | results are repositories: same name as the search tools |
repo_ids | idsAny | sprawl | repo_ids ids_any ids | same as the search tools |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].file_uri | items[].fileUri | rename | |
items[].updated_at | items[].lastModified | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
completeness.public_only | completeness.publicOnly | rename | |
completeness.estimated_total_hits | completeness.estimatedTotal | rename |
hf_hub_lookup (1 argument, 1 output rename, 7 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
types | kindsAny | sprawl | types kinds repo_types |
Output fields
| old | new | change | note |
|---|---|---|---|
results | items | shape | grouped map results.{type}[] -> flat items[] (kind tells the type) |
results{}[].kind | items[].kind | shape | |
results{}[].id | items[].id | shape | |
results{}[].uri | items[].uri | shape | |
results{}[].url | items[].url | shape | |
results{}[].title | items[].title | shape | |
results{}[].private | items[].private | shape | |
counts | numByKind | rename |
hf_filter_values (1 argument, 3 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
kind | catalog | sprawl | kind | not a resource kind |
Output fields
| old | new | change | note |
|---|---|---|---|
groups[].values[].sub_type | groups[].values[].subType | rename | |
groups[].returned_count | groups[].returnedCount | rename | |
groups[].available_count | groups[].numValues | rename |
hf_hardware_flavors (6 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
items[].name | items[].id | rename | flavor id, as every other record |
items[].pretty_name | items[].prettyName | rename | |
items[].ephemeral_storage | items[].ephemeralStorage | rename | |
items[].unit_cost_usd | items[].unitCostUsd | rename | |
items[].unit_label | items[].unitLabel | rename | |
returned_count | returnedCount | rename |
hf_buckets_list (8 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
items[].total_files | items[].numFiles | rename | |
items[].created_at | items[].createdAt | rename | |
items[].updated_at | items[].lastModified | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
completeness.public_only | completeness.publicOnly | rename | |
completeness.estimated_total_hits | completeness.estimatedTotal | rename |
hf_repo_info (1 argument, 21 values, 33 output rename, 8 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
refs | repos | sprawl | refs repo_ids repoIds repositories model_ids dataset_ids space_ids ids uris urls repo_id repo model_id dataset_id space_id ref id uri url |
fields / sort values
| argument | old | new | old still accepted | rule |
|---|---|---|---|---|
fields | created_at | createdAt | yes | |
fields | last_modified | lastModified | yes | |
fields | downloads_all_time | downloadsAllTime | yes | |
fields | pipeline_tag | pipelineTag | yes | |
fields | library_name | libraryName | yes | |
fields | base_models | baseModels | yes | |
fields | base_model_relation | baseModelRelation | yes | |
fields | spaces_count | numSpaces | yes | |
fields | children_model_count | numChildModels | yes | |
fields | parameters | safetensors | yes | |
fields | chat_template | chatTemplate | yes | |
fields | chat_template_truncated | chatTemplateTruncated | yes | |
fields | auto_model | transformersInfo | yes | |
fields | inference_providers | inferenceProviders | yes | |
fields | used_storage | usedStorage | yes | |
fields | paperswithcode_id | paperswithcodeId | yes | |
fields | pretty_name | prettyName | yes | |
fields | task_categories | taskCategories | yes | |
fields | size_categories | sizeCategories | yes | |
fields | short_description | shortDescription | yes | |
fields | total_files | numFiles | yes |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].created_at | items[].createdAt | rename | |
items[].last_modified | items[].lastModified | rename | |
items[].downloads_all_time | items[].downloadsAllTime | rename | |
items[].pipeline_tag | items[].pipelineTag | rename | |
items[].library_name | items[].libraryName | rename | |
items[].base_models | items[].baseModels | rename | |
items[].base_models[].kind | items[].baseModels[].kind | rename | |
items[].base_models[].id | items[].baseModels[].id | rename | |
items[].base_models[].uri | items[].baseModels[].uri | rename | |
items[].base_models[].url | items[].baseModels[].url | rename | |
items[].base_model_relation | items[].baseModelRelation | rename | |
items[].spaces_count | items[].numSpaces | rename | |
items[].children_model_count | items[].numChildModels | rename | |
items[].parameters | items[].safetensors | shape | repo_info: parameters{total,by_dtype} -> safetensors{total,parameters} |
items[].parameters.total | items[].safetensors.total | shape | |
items[].parameters.by_dtype | items[].safetensors.parameters | shape | |
items[].gguf.context_length | items[].gguf.contextLength | rename | |
items[].gguf.bos_token | items[].gguf.bosToken | rename | |
items[].gguf.eos_token | items[].gguf.eosToken | rename | |
items[].chat_template | items[].chatTemplate | rename | |
items[].chat_template_truncated | items[].chatTemplateTruncated | rename | |
items[].auto_model | items[].transformersInfo.autoModel | shape | same object as search records |
items[].inference_providers | items[].inferenceProviders | rename | |
items[].inference_providers[].provider | items[].inferenceProviders[].provider | rename | |
items[].inference_providers[].provider_id | items[].inferenceProviders[].providerId | rename | |
items[].inference_providers[].status | items[].inferenceProviders[].status | rename | |
items[].inference_providers[].task | items[].inferenceProviders[].task | rename | |
items[].used_storage | items[].usedStorage | rename | |
items[].paperswithcode_id | items[].paperswithcodeId | rename | |
items[].pretty_name | items[].prettyName | rename | |
items[].task_categories | items[].taskCategories | rename | |
items[].size_categories | items[].sizeCategories | rename | |
items[].short_description | items[].shortDescription | rename | |
items[].runtime.hardware | items[].runtime.hardware.current | shape | string -> {current, requested} |
items[].runtime.requested_hardware | items[].runtime.hardware.requested | shape | |
items[].runtime.sleep_time_seconds | items[].runtime.gcTimeout | rename | |
items[].total_files | items[].numFiles | rename | |
items[].error | items[].error.code | shape | error string -> {code, message} |
items[].message | items[].error.message | shape | |
returned_count | returnedCount | rename | |
error_count | errorCount | rename |
hf_repo_list_files (3 arguments, 10 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | repo | sprawl | ref repo_id repoId repository repo_ref model_id dataset_id space_id id uri url | |
path_contains | pathContains | rename | path_contains | |
type | kind | sprawl | type | records already say kind |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].last_commit | items[].lastCommit | rename | |
items[].last_commit.id | items[].lastCommit.id | rename | |
items[].last_commit.title | items[].lastCommit.title | rename | |
items[].last_commit.date | items[].lastCommit.createdAt | rename | |
items[].uploaded_at | items[].uploadedAt | rename | |
items[].mtime | items[].lastModified | rename | |
items[].content_type | items[].contentType | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.total_matches | completeness.total | rename |
hf_repo_paths_info (2 arguments, 18 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | repo | sprawl | ref repo_id repoId repository repo_ref model_id dataset_id space_id id uri url | |
include_folder_size | includeFolderSize | rename | include_folder_size |
Output fields
| old | new | change | note |
|---|---|---|---|
entries | items | rename | |
entries[].kind | items[].kind | rename | |
entries[].id | items[].id | rename | |
entries[].uri | items[].uri | rename | |
entries[].url | items[].url | rename | |
entries[].path | items[].path | rename | |
entries[].size | items[].size | rename | |
entries[].lfs | items[].lfs | rename | |
entries[].xet | items[].xet | rename | |
entries[].oid | items[].oid | rename | |
entries[].last_commit | items[].lastCommit | rename | |
entries[].last_commit.id | items[].lastCommit.id | rename | |
entries[].last_commit.title | items[].lastCommit.title | rename | |
entries[].last_commit.date | items[].lastCommit.createdAt | rename | |
entries[].uploaded_at | items[].uploadedAt | rename | |
entries[].mtime | items[].lastModified | rename | |
entries[].content_type | items[].contentType | rename | |
returned_count | returnedCount | rename |
hf_repo_read_text (1 argument, 2 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
max_bytes | maxBytes | rename | max_bytes |
Output fields
| old | new | change | note |
|---|---|---|---|
total_bytes | size | rename | |
next_offset | nextOffset | rename |
hf_repo_read_image (1 argument, 1 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
max_bytes | maxBytes | rename | max_bytes |
Output fields
| old | new | change | note |
|---|---|---|---|
mime_type | mimeType | rename |
hf_repo_history (2 arguments, 5 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | repo | sprawl | ref repo_id repoId repository repo_ref model_id dataset_id space_id id uri url | |
include_prs | includePrs | rename | include_prs include_pull_requests |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].date | items[].createdAt | rename | |
items[].target_commit | items[].targetCommit | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.upstream_total | completeness.total | rename |
hf_dataset_structure (19 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
splits[].num_rows | splits[].numRows | rename | |
splits[].num_columns | splits[].numColumns | rename | |
splits[].parquet_bytes | splits[].parquetSize | rename | |
splits[].memory_bytes | splits[].memorySize | rename | |
splits[].original_bytes | splits[].originalSize | rename | |
splits_truncated | splitsTruncated | rename | |
splits_total | numSplits | rename | |
totals.num_rows | totals.numRows | rename | |
totals.parquet_bytes | totals.parquetSize | rename | |
totals.memory_bytes | totals.memorySize | rename | |
totals.original_bytes | totals.originalSize | rename | |
schema[].columns_truncated | schema[].columnsTruncated | rename | |
schema[].columns_total | schema[].numColumns | rename | |
schema_truncated | schemaTruncated | rename | |
schema_configs_total | numSchemaConfigs | rename | |
parquet.total_files | parquet.numFiles | rename | |
statistics.num_examples | statistics.numExamples | rename | |
statistics.columns_truncated | statistics.columnsTruncated | rename | |
statistics.columns_total | statistics.numColumns | rename |
hf_dataset_rows (1 argument, 6 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
length | limit | sprawl | length max_results top_k page_size comments_limit |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].row_idx | items[].rowIdx | rename | |
items[].truncated_cells | items[].truncatedCells | rename | |
items[].omitted_columns | items[].omittedColumns | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.num_rows_total | completeness.total | rename |
hf_papers_search (11 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
items[].ai_summary | items[].aiSummary | rename | |
items[].published_at | items[].publishedAt | rename | |
items[].arxiv_url | items[].arxivUrl | rename | |
items[].github_repo | items[].githubRepo | rename | |
items[].project_page | items[].projectPage | rename | |
items[].submitted_on_daily_at | items[].submittedOnDailyAt | rename | |
items[].submitted_by | items[].submittedBy | rename | |
items[].num_comments | items[].numComments | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
hf_daily_papers (1 argument, 11 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
submitter | submittedBy | sprawl | submitter submitted_by | records say submittedBy |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].ai_summary | items[].aiSummary | rename | |
items[].published_at | items[].publishedAt | rename | |
items[].arxiv_url | items[].arxivUrl | rename | |
items[].github_repo | items[].githubRepo | rename | |
items[].project_page | items[].projectPage | rename | |
items[].submitted_on_daily_at | items[].submittedOnDailyAt | rename | |
items[].submitted_by | items[].submittedBy | rename | |
items[].num_comments | items[].numComments | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
hf_paper_get (1 argument, 8 output rename, 2 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
paper_ids | papers | sprawl | paper_ids paper_id arxiv_id arxiv_ids ids uris urls id uri url |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].ai_summary | items[].aiSummary | rename | |
items[].published_at | items[].publishedAt | rename | |
items[].arxiv_url | items[].arxivUrl | rename | |
items[].github_repo | items[].githubRepo | rename | |
items[].project_page | items[].projectPage | rename | |
items[].ai_keywords | items[].aiKeywords | rename | |
items[].github_stars | items[].githubStars | rename | |
items[].error | items[].error.code | shape | error string -> {code, message} |
items[].message | items[].error.message | shape | |
returned_count | returnedCount | rename |
hf_paper_read (2 arguments, 2 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
paper_id | paper | sprawl | paper_id arxiv_id paper_ids arxiv_ids id uri url | |
max_bytes | maxBytes | rename | max_bytes |
Output fields
| old | new | change | note |
|---|---|---|---|
total_bytes | size | rename | |
next_offset | nextOffset | rename |
hf_collections_search (1 argument, 8 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
owners | ownersAny | sprawl | owners owner author |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].last_updated | items[].lastModified | rename | |
items[].items_preview | items[].itemsPreview | rename | |
items[].items_preview[].kind | items[].itemsPreview[].kind | rename | |
items[].items_preview[].id | items[].itemsPreview[].id | rename | |
items[].items_preview[].uri | items[].itemsPreview[].uri | rename | |
items[].items_preview[].url | items[].itemsPreview[].url | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename |
hf_collection_get (1 argument, 7 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
include_history | includeHistory | rename | include_history |
Output fields
| old | new | change | note |
|---|---|---|---|
last_updated | lastModified | rename | |
items[].pipeline_tag | items[].pipelineTag | rename | |
returned_count | returnedCount | rename | |
history[].date | history[].createdAt | rename | |
completeness.items_total | completeness.total | rename | |
completeness.skipped_items | completeness.skippedItems | rename | |
completeness.history_total | completeness.numHistory | rename |
hf_docs_search (2 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename |
hf_docs_read (1 argument, 3 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
max_bytes | maxBytes | rename | max_bytes |
Output fields
| old | new | change | note |
|---|---|---|---|
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
next_offset | nextOffset | rename |
hf_space_tools (5 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
tools[].input_schema | tools[].inputSchema | rename | |
tools[].file_inputs | tools[].fileInputs | rename | |
tools[].locally_validated | tools[].locallyValidated | rename | |
tools[].schema_omitted | tools[].schemaOmitted | rename | |
returned_count | returnedCount | rename |
hf_space_invoke (3 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
is_error | isError | rename | |
text_truncated | textTruncated | rename | |
media[].mime_type | media[].mimeType | rename |
hf_profile_get (1 argument, 5 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
include_socials | includeSocials | rename | include_socials |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].avatar_url | items[].avatarUrl | rename | |
items[].is_pro | items[].isPro | rename | |
items[].created_at | items[].createdAt | rename | |
items[].handle | items[].ref | rename | echo of the input as given |
returned_count | returnedCount | rename |
hf_org_members (2 arguments, 5 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
org | handle | sprawl | org handles user entity username usernames users organization orgs uri url id | |
admins_only | adminsOnly | rename | admins_only |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].avatar_url | items[].avatarUrl | rename | |
items[].is_pro | items[].isPro | rename | |
items[].org_type | items[].orgType | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename |
hf_follow_graph (5 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
items[].avatar_url | items[].avatarUrl | rename | |
items[].is_pro | items[].isPro | rename | |
items[].org_type | items[].orgType | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename |
hf_user_likes (2 arguments, 7 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
user | handle | sprawl | user handles org entity username usernames users organization orgs uri url id | |
kinds | kindsAny | sprawl | kinds types repo_types |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].liked_at | items[].likedAt | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pages_scanned | completeness.pagesScanned | rename | |
completeness.rows_scanned | completeness.rowsScanned | rename | |
completeness.ranking_window | completeness.rankingWindow | rename | |
completeness.note | completeness.hint | rename |
hf_repo_likers (1 argument, 5 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | repo | sprawl | ref repo_id repoId repository repo_ref model_id dataset_id space_id id uri url |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].avatar_url | items[].avatarUrl | rename | |
items[].is_pro | items[].isPro | rename | |
items[].org_type | items[].orgType | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename |
hf_activity (2 arguments, 6 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
entity | handle | sprawl | entity handles user org username usernames users organization orgs uri url id | |
types | typesAny | sprawl | types type | event types |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].time | items[].createdAt | rename | |
items[].target_type | items[].targetType | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pages_scanned | completeness.pagesScanned | rename | |
completeness.rows_scanned | completeness.rowsScanned | rename |
hf_discussions_list (1 argument, 9 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | repo | sprawl | ref repo_id repoId repository repo_ref model_id dataset_id space_id id uri url |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].created_at | items[].createdAt | rename | |
items[].comments | items[].numComments | rename | was a number named like the comments[] array |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.total_upstream | completeness.total | rename | |
completeness.repos_scanned | completeness.reposScanned | rename | |
completeness.repos_total_known | completeness.total | rename | repositories known for the owner |
completeness.repos_failed | completeness.reposFailed | rename | |
completeness.note | completeness.hint | rename |
hf_discussion_get (2 arguments, 12 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | discussion | sprawl | ref repo (with num) repo_id (with num) discussion_id uri url id | repo + num still accepted |
comments_limit | limit | sprawl | comments_limit max_results top_k page_size length | comments are the paged list |
Output fields
| old | new | change | note |
|---|---|---|---|
created_at | createdAt | rename | |
comments[].created_at | comments[].createdAt | rename | |
comments[].text_truncated | comments[].textTruncated | rename | |
comment_count | numComments | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
timeline[].created_at | timeline[].createdAt | rename | |
files_truncated | filesTruncated | rename | |
diff_url | diffUrl | rename | |
target_branch | targetBranch | rename | |
merge_commit | mergeCommit | rename | |
conflicting_files | conflictingFiles | rename |
hf_whoami (5 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
username | id | rename | whoami becomes a person record |
type | kind | rename | values user | org |
is_pro | isPro | rename | |
orgs[].name | orgs[].id | rename | orgs[] become person records (+kind, uri) |
token.fine_grained | token.fineGrained | rename |
hf_repo_create (2 arguments, 4 output rename, 5 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
uri | repo | sprawl | uri ref repo_id repoId repository repo_ref model_id dataset_id space_id id url | create and write now share the name |
hardware | flavor | sprawl | hardware | 14 other places say flavor |
Output fields
| old | new | change | note |
|---|---|---|---|
hardware | runtime | shape | same object as Space records |
hardware.requested | runtime.hardware.requested | shape | |
hardware.current | runtime.hardware.current | shape | |
hardware.stage | runtime.stage | shape | |
hardware.confirmed | runtime.confirmed | shape | |
copy_status | copyStatus | rename | |
copy_status.pending | copyStatus.pending | rename | |
copy_status.files_total | copyStatus.numFiles | rename | |
copy_status.files_copied | copyStatus.filesCopied | rename |
hf_repo_write_files (3 arguments, 1 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
ref | repo | sprawl | ref repo_id repoId repository repo_ref model_id dataset_id space_id id uri url | |
create_pr | createPr | rename | create_pr | |
parent_commit | parentCommit | rename | parent_commit |
Output fields
| old | new | change | note |
|---|---|---|---|
pull_request_url | pullRequestUrl | rename |
hf_job_run (4 arguments, 10 output rename, 3 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
script_args | scriptArgs | rename | script_args | |
forward_hf_token | forwardHfToken | rename | forward_hf_token | |
resource_group_id | resourceGroupId | rename | resource_group_id | |
wait_seconds | waitSeconds | rename | wait_seconds |
Output fields
| old | new | change | note |
|---|---|---|---|
job.created_at | job.createdAt | rename | |
job.finished_at | job.finishedAt | rename | |
job.docker_image | job.dockerImage | rename | |
job.space_id | job.spaceId | rename | |
job.environment_variable_names | job.environmentVariableNames | rename | |
job.secret_names | job.secretNames | rename | |
job.status.expose_urls | job.status.exposeUrls | rename | |
job.owner.name | job.owner | shape | |
job.created_by | job.createdBy | shape | {id, name, type} -> name string |
job.created_by.name | job.createdBy | shape | |
job.timeout_seconds | job.timeoutSeconds | rename | |
logs.follow_stopped | logs.followStopped | rename | |
logs.lines_truncated | logs.linesTruncated | rename |
hf_job_schedule (3 arguments, 11 output rename, 2 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
script_args | scriptArgs | rename | script_args | |
forward_hf_token | forwardHfToken | rename | forward_hf_token | |
resource_group_id | resourceGroupId | rename | resource_group_id |
Output fields
| old | new | change | note |
|---|---|---|---|
scheduled_job | scheduledJob | rename | |
scheduled_job.id | scheduledJob.id | rename | |
scheduled_job.schedule | scheduledJob.schedule | rename | |
scheduled_job.suspended | scheduledJob.suspended | rename | |
scheduled_job.last_run | scheduledJob.lastRunAt | rename | |
scheduled_job.next_run | scheduledJob.nextRunAt | rename | |
scheduled_job.owner | scheduledJob.owner | shape | {id, name, type} -> name string |
scheduled_job.owner.name | scheduledJob.owner | shape | |
scheduled_job.created_at | scheduledJob.createdAt | rename | |
scheduled_job.job_spec | scheduledJob.jobSpec | rename | |
scheduled_job.kind | scheduledJob.kind | rename | |
scheduled_job.namespace | scheduledJob.namespace | rename | |
scheduled_job.concurrency | scheduledJob.concurrency | rename |
hf_jobs_list (2 arguments, 14 output rename, 3 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
stages | stagesAny | sprawl | stages stages_any stage | |
| — | limit | add | max_results top_k page_size length comments_limit | new: page size 1-100, default 20 |
Output fields
| old | new | change | note |
|---|---|---|---|
items[].created_at | items[].createdAt | rename | |
items[].finished_at | items[].finishedAt | rename | |
items[].docker_image | items[].dockerImage | rename | |
items[].space_id | items[].spaceId | rename | |
items[].environment_variable_names | items[].environmentVariableNames | rename | |
items[].secret_names | items[].secretNames | rename | |
items[].status.expose_urls | items[].status.exposeUrls | rename | |
items[].owner.name | items[].owner | shape | |
items[].created_by | items[].createdBy | shape | {id, name, type} -> name string |
items[].created_by.name | items[].createdBy | shape | |
items[].timeout_seconds | items[].timeoutSeconds | rename | |
items[].last_run | items[].lastRunAt | rename | |
items[].next_run | items[].nextRunAt | rename | |
items[].job_spec | items[].jobSpec | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename | |
completeness.pagination_blocked_reason | completeness.reason | rename | same codes |
hf_job_get (1 argument, 19 output rename, 5 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
job_id | job | sprawl | job_id id job_url url |
Output fields
| old | new | change | note |
|---|---|---|---|
job.created_at | job.createdAt | rename | |
job.finished_at | job.finishedAt | rename | |
job.docker_image | job.dockerImage | rename | |
job.space_id | job.spaceId | rename | |
job.environment_variable_names | job.environmentVariableNames | rename | |
job.secret_names | job.secretNames | rename | |
job.status.expose_urls | job.status.exposeUrls | rename | |
job.owner.name | job.owner | shape | |
job.created_by | job.createdBy | shape | {id, name, type} -> name string |
job.created_by.name | job.createdBy | shape | |
job.timeout_seconds | job.timeoutSeconds | rename | |
scheduled_job | scheduledJob | rename | |
scheduled_job.id | scheduledJob.id | rename | |
scheduled_job.schedule | scheduledJob.schedule | rename | |
scheduled_job.suspended | scheduledJob.suspended | rename | |
scheduled_job.last_run | scheduledJob.lastRunAt | rename | |
scheduled_job.next_run | scheduledJob.nextRunAt | rename | |
scheduled_job.owner | scheduledJob.owner | shape | {id, name, type} -> name string |
scheduled_job.owner.name | scheduledJob.owner | shape | |
scheduled_job.created_at | scheduledJob.createdAt | rename | |
scheduled_job.job_spec | scheduledJob.jobSpec | rename | |
scheduled_job.kind | scheduledJob.kind | rename | |
scheduled_job.namespace | scheduledJob.namespace | rename | |
scheduled_job.concurrency | scheduledJob.concurrency | rename |
hf_job_logs (2 arguments, 3 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
job_id | job | sprawl | job_id id job_url url | |
follow_seconds | followSeconds | rename | follow_seconds |
Output fields
| old | new | change | note |
|---|---|---|---|
follow_stopped | followStopped | rename | |
lines_truncated | linesTruncated | rename | |
returned_count | returnedCount | rename |
hf_job_cancel (1 argument, 12 output rename, 3 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
job_id | job | sprawl | job_id id job_url url |
Output fields
| old | new | change | note |
|---|---|---|---|
job.created_at | job.createdAt | rename | |
job.finished_at | job.finishedAt | rename | |
job.docker_image | job.dockerImage | rename | |
job.space_id | job.spaceId | rename | |
job.environment_variable_names | job.environmentVariableNames | rename | |
job.secret_names | job.secretNames | rename | |
job.status.expose_urls | job.status.exposeUrls | rename | |
job.owner.name | job.owner | shape | |
job.created_by | job.createdBy | shape | {id, name, type} -> name string |
job.created_by.name | job.createdBy | shape | |
job.timeout_seconds | job.timeoutSeconds | rename | |
scheduled_job | scheduledJob | rename | |
scheduled_job.kind | scheduledJob.kind | rename | |
scheduled_job.id | scheduledJob.id | rename | |
scheduled_job.namespace | scheduledJob.namespace | rename |
hf_job_update (1 argument, 41 output rename, 9 output shape)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
job_id | job | sprawl | job_id id job_url url |
Output fields
| old | new | change | note |
|---|---|---|---|
job.created_at | job.createdAt | rename | |
job.finished_at | job.finishedAt | rename | |
job.docker_image | job.dockerImage | rename | |
job.space_id | job.spaceId | rename | |
job.environment_variable_names | job.environmentVariableNames | rename | |
job.secret_names | job.secretNames | rename | |
job.status.expose_urls | job.status.exposeUrls | rename | |
job.owner.name | job.owner | shape | |
job.created_by | job.createdBy | shape | {id, name, type} -> name string |
job.created_by.name | job.createdBy | shape | |
job.timeout_seconds | job.timeoutSeconds | rename | |
scheduled_job | scheduledJob | rename | |
scheduled_job.id | scheduledJob.id | rename | |
scheduled_job.schedule | scheduledJob.schedule | rename | |
scheduled_job.suspended | scheduledJob.suspended | rename | |
scheduled_job.last_run | scheduledJob.lastRunAt | rename | |
scheduled_job.next_run | scheduledJob.nextRunAt | rename | |
scheduled_job.owner | scheduledJob.owner | shape | {id, name, type} -> name string |
scheduled_job.owner.name | scheduledJob.owner | shape | |
scheduled_job.created_at | scheduledJob.createdAt | rename | |
scheduled_job.job_spec | scheduledJob.jobSpec | rename | |
scheduled_job.kind | scheduledJob.kind | rename | |
scheduled_job.namespace | scheduledJob.namespace | rename | |
scheduled_job.concurrency | scheduledJob.concurrency | rename | |
triggered_job | triggeredJob | rename | |
triggered_job.id | triggeredJob.id | rename | |
triggered_job.url | triggeredJob.url | rename | |
triggered_job.endpoint | triggeredJob.endpoint | rename | |
triggered_job.created_at | triggeredJob.createdAt | rename | |
triggered_job.finished_at | triggeredJob.finishedAt | rename | |
triggered_job.docker_image | triggeredJob.dockerImage | rename | |
triggered_job.space_id | triggeredJob.spaceId | rename | |
triggered_job.command | triggeredJob.command | rename | |
triggered_job.arguments | triggeredJob.arguments | rename | |
triggered_job.environment_variable_names | triggeredJob.environmentVariableNames | rename | |
triggered_job.secret_names | triggeredJob.secretNames | rename | |
triggered_job.flavor | triggeredJob.flavor | rename | |
triggered_job.status | triggeredJob.status | rename | |
triggered_job.status.stage | triggeredJob.status.stage | rename | |
triggered_job.status.message | triggeredJob.status.message | rename | |
triggered_job.status.expose_urls | triggeredJob.status.exposeUrls | rename | |
triggered_job.owner | triggeredJob.owner | shape | {id, name, type} -> name string |
triggered_job.owner.name | triggeredJob.owner | shape | |
triggered_job.created_by | triggeredJob.createdBy | shape | {id, name, type} -> name string |
triggered_job.created_by.name | triggeredJob.createdBy | shape | |
triggered_job.tags | triggeredJob.tags | rename | |
triggered_job.labels | triggeredJob.labels | rename | |
triggered_job.timeout_seconds | triggeredJob.timeoutSeconds | rename | |
triggered_job.kind | triggeredJob.kind | rename | |
triggered_job.namespace | triggeredJob.namespace | rename |
hf_sandbox_create (2 arguments, 5 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
forward_hf_token | forwardHfToken | rename | forward_hf_token | |
resource_group_id | resourceGroupId | rename | resource_group_id |
Output fields
| old | new | change | note |
|---|---|---|---|
job_id | jobId | rename | |
server_url | serverUrl | rename | |
volumes[].mount_path | volumes[].mountPath | rename | |
volumes[].read_only | volumes[].readOnly | rename | |
hf_token_forwarded | hfTokenForwarded | rename |
hf_sandbox_status (11 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
job_id | jobId | rename | |
server_url | serverUrl | rename | |
stage_message | stageMessage | rename | |
health_error | healthError | rename | |
created_at | createdAt | rename | |
idle_lifetime_seconds | idleLifetimeSeconds | rename | |
volumes[].mount_path | volumes[].mountPath | rename | |
volumes[].read_only | volumes[].readOnly | rename | |
processes.returned_count | processes.returnedCount | rename | |
processes.next_cursor | processes.nextCursor | rename | |
processes.completeness.available | processes.completeness.total | rename | processes known |
hf_sandbox_terminate (1 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
job_id | jobId | rename |
hf_sandbox_exec (7 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
exit_code | exitCode | rename | |
timed_out | timedOut | rename | |
duration_ms | durationMs | rename | |
stdout_truncated | stdoutTruncated | rename | |
stderr_truncated | stderrTruncated | rename | |
process.exit_code | process.exitCode | rename | |
process.started_at | process.startedAt | rename |
hf_sandbox_kill (4 output rename)
Output fields
| old | new | change | note |
|---|---|---|---|
matched_by | matchedBy | rename | |
killed[].exit_code | killed[].exitCode | rename | |
killed[].started_at | killed[].startedAt | rename | |
returned_count | returnedCount | rename |
hf_sandbox_fs_read (1 argument, 5 output rename)
Arguments
| old | new | change | accepted aliases (not advertised) | note |
|---|---|---|---|---|
max_bytes | maxBytes | rename | max_bytes |
Output fields
| old | new | change | note |
|---|---|---|---|
entry.mtime | entry.lastModified | rename | |
next_offset | nextOffset | rename | |
items[].mtime | items[].lastModified | rename | |
returned_count | returnedCount | rename | |
next_cursor | nextCursor | rename |
Tool definitions
53 tools: 37 anonymous, 40 with a read token, all 53 with a write token. Shown as Python stubs or TypeScript declarations (toggle at the top), generated from the tools/list schemas.
Server instructions (248 chars): Pass returned uris unchanged to later calls. Page with nextCursor (reads: nextOffset), same other arguments; returnedCount is per page. completeness: hasMore with null cursor = paging blocked; truncated = results no page returns (see reason, hint).
Hub discovery (10)
| Tool | Definition | Endpoints |
|---|---|---|
hf_models_searchanonymousread-only replaces hf_fs, hub_repo_details, hub_repo_search | async def hf_models_search(
*,
query: str | None = None,
authorsAny: list[str] | None = None,
idsAny: list[str] | None = None,
papersAny: list[str] | None = None,
tagsAll: list[str] | None = None,
tagsAnyGroups: list[list[str]] | None = None,
direction: Literal["asc", "desc"] = "desc",
limit: int = 20,
cursor: str | None | None = None,
sort: Literal["trendingScore", "likes", "likes30d", "lastModified", "createdAt", "id", "downloads", "numParameters"] = "trendingScore",
fields: list[Literal["author", "createdAt", "lastModified", "likes", "private", "disabled", "sha", "tags", "trendingScore", "downloads", "downloadsAllTime", "gated", "pipelineTag", "libraryName", "safetensors", "numParameters", "baseModels", "inferenceProviders", "spaces", "datasets", "config", "transformersInfo"]] | None = None,
task: str | None = None,
librariesAll: list[str] | None = None,
languagesAll: list[str] | None = None,
licensesAll: list[str] | None = None,
gated: bool | None = None,
providersAny: list[str] | None = None,
anyProvider: Literal[True] | None = None,
inference: Literal["warm", "cold", "frozen"] | None = None,
numParametersMin: int | None = None,
numParametersMax: int | None = None,
numParametersAny: list[int] | None = None,
createdAt: dict[str, Any] | None = None,
baseModelRelationsAny: list[Literal["base", "adapter", "merge", "quantized", "finetune"]] | None = None,
baseModelsAll: list[str] | None = None,
baseModelRelation: Literal["adapter", "merge", "quantized", "finetune"] | None = None,
datasetsAny: list[str] | None = None,
appsAny: list[str] | None = None,
) -> dict[str, Any]:
"""Search Hugging Face model repositories (weights, checkpoints, LLMs) by name, or browse. Find
fine-tune, adapter, GGUF and quantized builds using name prefixes and filters for owner, task,
library, language, license, parameter size or base-model lineage. Sort by downloads, likes,
trending, date or parameter count. Returns repository IDs and hf:// URIs. See
hf_repo_fulltext_search, hf_trending.
Args:
query: Name/prefix search (not semantic or README text). Omit to browse.
authorsAny: OR of owners: user/org names or profile uris (items[].author).
idsAny: OR of exact repository IDs (items[].id).
papersAny: OR of paper arXiv IDs (or hf://papers/ID uris).
tagsAll: AND of exact stored tags (no commas or spaces; dataset tags are namespaced).
tagsAnyGroups: AND of OR groups of tags; values without slash, space, plus or comma.
direction: asc only for id, createdAt, numParameters, numRows or mainSize.
limit: Maximum items to return (default 20, max 100).
cursor: nextCursor from a previous call (same args); full scans take 100s of pages.
sort: Sort key; numParameters asc puts unknown first (use numParametersMin=1).
fields: Fields to return instead of the defaults; kind/id/uri/url are always included.
task: Single pipeline tag, e.g. text-generation.
librariesAll: AND of bare model library tags, e.g. transformers or diffusers.
languagesAll: AND of bare model language tags, e.g. en.
licensesAll: AND of licenses, e.g. apache-2.0.
gated: True matches auto/manual gating; false matches ungated.
providersAny: OR of provider IDs, e.g. groq, together, hf-inference, openrouter.
anyProvider: Require any live provider; inference_provider=all.
inference: warm: any live provider; cold/frozen: no provider.
numParametersAny: OR of exact parameter counts (numbers, not "7B" strings).
createdAt: Bounds object {gt|gte, lt|lte}: ISO date or datetime.
baseModelRelationsAny: OR of lineage relations (base is a heuristic).
baseModelsAll: AND of base_model:ID tags. Reuse model items[].id.
baseModelRelation: Relation for baseModelsAll, e.g. quantized.
datasetsAny: OR of linked training dataset IDs.
appsAny: OR of local app IDs, e.g. llama.cpp, ollama, vllm, mlx-lm.
Returns: {
nextCursor: str | None,
returnedCount: int,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, unknownOwners: list[str]},
items: list[{kind: Literal["model"], id: str, uri: str, url: str, author: str, createdAt: str, lastModified: str, likes: float, private: bool, disabled: bool, sha: str, tags: list[str], trendingScore: float, downloads: float, downloadsAllTime: float, gated: bool | Literal["auto", "manual"], pipelineTag: str, libraryName: str, numParameters: float, safetensors: dict[str, Any], config: dict[str, Any], transformersInfo: dict[str, Any], inferenceProviders: list[dict[str, Any]], baseModels: list[dict[str, Any]], baseModelRelation: str, spaces: list[dict[str, Any]], datasets: list[dict[str, Any]]}],
}
"""
.../**
* Search Hugging Face model repositories (weights, checkpoints, LLMs) by name, or browse. Find
* fine-tune, adapter, GGUF and quantized builds using name prefixes and filters for owner, task,
* library, language, license, parameter size or base-model lineage. Sort by downloads, likes,
* trending, date or parameter count. Returns repository IDs and hf:// URIs. See
* hf_repo_fulltext_search, hf_trending.
*/
declare function hf_models_search(args: {
// Name/prefix search (not semantic or README text). Omit to browse.
query?: string;
// OR of owners: user/org names or profile uris (items[].author).
authorsAny?: string[];
// OR of exact repository IDs (items[].id).
idsAny?: string[];
// OR of paper arXiv IDs (or hf://papers/ID uris).
papersAny?: string[];
// AND of exact stored tags (no commas or spaces; dataset tags are namespaced).
tagsAll?: string[];
// AND of OR groups of tags; values without slash, space, plus or comma.
tagsAnyGroups?: string[][];
// asc only for id, createdAt, numParameters, numRows or mainSize. @default "desc"
direction?: "asc" | "desc";
// Maximum items to return (default 20, max 100). @default 20
limit?: number;
// nextCursor from a previous call (same args); full scans take 100s of pages.
cursor?: string | null;
// Sort key; numParameters asc puts unknown first (use numParametersMin=1). @default "trendingScore"
sort?: "trendingScore" | "likes" | "likes30d" | "lastModified" | "createdAt" | "id" | "downloads" | "numParameters";
// Fields to return instead of the defaults; kind/id/uri/url are always included.
fields?: Array<"author" | "createdAt" | "lastModified" | "likes" | "private" | "disabled" | "sha" | "tags" | "trendingScore" | "downloads" | "downloadsAllTime" | "gated" | "pipelineTag" | "libraryName" | "safetensors" | "numParameters" | "baseModels" | "inferenceProviders" | "spaces" | "datasets" | "config" | "transformersInfo">;
// Single pipeline tag, e.g. text-generation.
task?: string;
// AND of bare model library tags, e.g. transformers or diffusers.
librariesAll?: string[];
// AND of bare model language tags, e.g. en.
languagesAll?: string[];
// AND of licenses, e.g. apache-2.0.
licensesAll?: string[];
// True matches auto/manual gating; false matches ungated.
gated?: boolean;
// OR of provider IDs, e.g. groq, together, hf-inference, openrouter.
providersAny?: string[];
// Require any live provider; inference_provider=all.
anyProvider?: true;
// warm: any live provider; cold/frozen: no provider.
inference?: "warm" | "cold" | "frozen";
numParametersMin?: number;
numParametersMax?: number;
// OR of exact parameter counts (numbers, not "7B" strings).
numParametersAny?: number[];
// Bounds object {gt|gte, lt|lte}: ISO date or datetime.
createdAt?: { gt?: string; gte?: string; lt?: string; lte?: string; };
// OR of lineage relations (base is a heuristic).
baseModelRelationsAny?: Array<"base" | "adapter" | "merge" | "quantized" | "finetune">;
// AND of base_model:ID tags. Reuse model items[].id.
baseModelsAll?: string[];
// Relation for baseModelsAll, e.g. quantized.
baseModelRelation?: "adapter" | "merge" | "quantized" | "finetune";
// OR of linked training dataset IDs.
datasetsAny?: string[];
// OR of local app IDs, e.g. llama.cpp, ollama, vllm, mlx-lm.
appsAny?: string[];
}): Promise<{
nextCursor: string | null;
returnedCount: number;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; unknownOwners?: string[]; };
items: Array<{ kind: "model"; id: string; uri: string; url: string; author?: string; createdAt?: string; lastModified?: string; likes?: number; private?: boolean; disabled?: boolean; sha?: string; tags?: string[]; trendingScore?: number; downloads?: number; downloadsAllTime?: number; gated?: boolean | "auto" | "manual"; pipelineTag?: string; libraryName?: string; numParameters?: number; safetensors?: Record<string, unknown>; config?: Record<string, unknown>; transformersInfo?: Record<string, unknown>; inferenceProviders?: Record<string, unknown>[]; baseModels?: Record<string, unknown>[]; baseModelRelation?: string; spaces?: Record<string, unknown>[]; datasets?: Record<string, unknown>[]; }>;
}>;input schema{
"type": "object",
"properties": {
"query": {
"description": "Name/prefix search (not semantic or README text). Omit to browse.",
"type": "string"
},
"authorsAny": {
"description": "OR of owners: user/org names or profile uris (items[].author).",
"type": "array",
"items": {
"type": "string"
}
},
"idsAny": {
"description": "OR of exact repository IDs (items[].id).",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"papersAny": {
"description": "OR of paper arXiv IDs (or hf://papers/ID uris).",
"type": "array",
"items": {
"type": "string",
"description": "arXiv ID, e.g. 2501.00001; hf://papers/ID uris are accepted."
}
},
"tagsAll": {
"description": "AND of exact stored tags (no commas or spaces; dataset tags are namespaced).",
"type": "array",
"items": {
"type": "string"
}
},
"tagsAnyGroups": {
"description": "AND of OR groups of tags; values without slash, space, plus or comma.",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"direction": {
"default": "desc",
"description": "asc only for id, createdAt, numParameters, numRows or mainSize.",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"limit": {
"default": 20,
"description": "Maximum items to return (default 20, max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); full scans take 100s of pages.",
"type": [
"string",
"null"
]
},
"sort": {
"default": "trendingScore",
"description": "Sort key; numParameters asc puts unknown first (use numParametersMin=1).",
"type": "string",
"enum": [
"trendingScore",
"likes",
"likes30d",
"lastModified",
"createdAt",
"id",
"downloads",
"numParameters"
]
},
"fields": {
"description": "Fields to return instead of the defaults; kind/id/uri/url are always included.",
"type": "array",
"items": {
"type": "string",
"enum": [
"author",
"createdAt",
"lastModified",
"likes",
"private",
"disabled",
"sha",
"tags",
"trendingScore",
"downloads",
"downloadsAllTime",
"gated",
"pipelineTag",
"libraryName",
"safetensors",
"numParameters",
"baseModels",
"inferenceProviders",
"spaces",
"datasets",
"config",
"transformersInfo"
]
}
},
"task": {
"description": "Single pipeline tag, e.g. text-generation.",
"type": "string"
},
"librariesAll": {
"description": "AND of bare model library tags, e.g. transformers or diffusers.",
"type": "array",
"items": {
"type": "string"
}
},
"languagesAll": {
"description": "AND of bare model language tags, e.g. en.",
"type": "array",
"items": {
"type": "string"
}
},
"licensesAll": {
"description": "AND of licenses, e.g. apache-2.0.",
"type": "array",
"items": {
"type": "string"
}
},
"gated": {
"description": "True matches auto/manual gating; false matches ungated.",
"type": "boolean"
},
"providersAny": {
"description": "OR of provider IDs, e.g. groq, together, hf-inference, openrouter.",
"type": "array",
"items": {
"type": "string"
}
},
"anyProvider": {
"description": "Require any live provider; inference_provider=all.",
"type": "boolean",
"const": true
},
"inference": {
"description": "warm: any live provider; cold/frozen: no provider.",
"type": "string",
"enum": [
"warm",
"cold",
"frozen"
]
},
"numParametersMin": {
"type": "integer"
},
"numParametersMax": {
"type": "integer"
},
"numParametersAny": {
"description": "OR of exact parameter counts (numbers, not \"7B\" strings).",
"type": "array",
"items": {
"type": "integer"
}
},
"createdAt": {
"type": "object",
"properties": {
"gt": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"gte": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"lt": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"lte": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
}
]
}
},
"additionalProperties": false,
"description": "Bounds object {gt|gte, lt|lte}: ISO date or datetime."
},
"baseModelRelationsAny": {
"description": "OR of lineage relations (base is a heuristic).",
"type": "array",
"items": {
"type": "string",
"enum": [
"base",
"adapter",
"merge",
"quantized",
"finetune"
]
}
},
"baseModelsAll": {
"description": "AND of base_model:ID tags. Reuse model items[].id.",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"baseModelRelation": {
"description": "Relation for baseModelsAll, e.g. quantized.",
"type": "string",
"enum": [
"adapter",
"merge",
"quantized",
"finetune"
]
},
"datasetsAny": {
"description": "OR of linked training dataset IDs.",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"appsAny": {
"description": "OR of local app IDs, e.g. llama.cpp, ollama, vllm, mlx-lm.",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"nextCursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"returnedCount": {
"type": "integer"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"unknownOwners": {
"description": "authorsAny names matching no user or organization.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"hasMore"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "model"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"likes": {
"type": "number"
},
"private": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"sha": {
"type": "string"
},
"tags": {
"description": "Exact values for tag filters.",
"type": "array",
"items": {
"type": "string"
}
},
"trendingScore": {
"type": "number"
},
"downloads": {
"type": "number",
"description": "Last 30 days."
},
"downloadsAllTime": {
"type": "number"
},
"gated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [
"auto",
"manual"
]
}
]
},
"pipelineTag": {
"description": "Value for task.",
"type": "string"
},
"libraryName": {
"type": "string"
},
"numParameters": {
"description": "Safetensors, else GGUF, total, as numParameters filters match. Request with fields numParameters; may also come with safetensors or sort numParameters.",
"type": "number"
},
"safetensors": {
"type": "object",
"properties": {
"total": {
"description": "Parameters, not bytes.",
"type": "number"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "number"
}
}
}
},
"config": {
"type": "object"
},
"transformersInfo": {
"type": "object",
"properties": {
"autoModel": {
"type": "string"
},
"pipelineTag": {
"type": "string"
},
"processor": {
"type": "string"
}
}
},
"inferenceProviders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"providerId": {
"type": "string"
},
"status": {
"type": "string"
},
"task": {
"type": "string"
},
"type": {
"type": "string"
},
"isModelAuthor": {
"type": "boolean"
}
},
"required": [
"provider"
]
}
},
"baseModels": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "model"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"baseModelRelation": {
"type": "string"
},
"spaces": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "space"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"datasets": {
"description": "From dataset: tags only; not a full training-data list.",
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "dataset"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
}
},
"required": [
"nextCursor",
"returnedCount",
"completeness",
"items"
]
} | GET /api/models |
hf_datasets_searchanonymousread-only replaces hf_fs, hub_repo_search | async def hf_datasets_search(
*,
query: str | None = None,
authorsAny: list[str] | None = None,
idsAny: list[str] | None = None,
papersAny: list[str] | None = None,
tagsAll: list[str] | None = None,
tagsAnyGroups: list[list[str]] | None = None,
direction: Literal["asc", "desc"] = "desc",
limit: int = 20,
cursor: str | None | None = None,
sort: Literal["trendingScore", "likes", "likes30d", "lastModified", "createdAt", "id", "downloads", "numRows", "mainSize"] = "trendingScore",
fields: list[Literal["author", "createdAt", "lastModified", "likes", "private", "disabled", "sha", "tags", "trendingScore", "downloads", "downloadsAllTime", "gated", "mainSize", "description", "citation", "paperswithcodeId"]] | None = None,
gated: bool | None = None,
taskCategoriesAll: list[str] | None = None,
sizeCategoriesAll: list[str] | None = None,
modalitiesAll: list[str] | None = None,
formatsAll: list[str] | None = None,
librariesAll: list[str] | None = None,
languagesAll: list[str] | None = None,
licensesAll: list[str] | None = None,
datasetType: Literal["benchmark", "agent-traces", "rl-environment"] | None = None,
) -> dict[str, Any]:
"""Search Hugging Face dataset repositories (training data, benchmarks, eval sets) by name, or
browse. Filter by owner, task category, modality, format, language, license, library or size
bucket, including benchmark and agent-trace tags. Sort by downloads, likes, trending, date or
stored size. For bulk row counts, use sort="numRows" (first page only); batch known IDs with
idsAny and set limit to the batch size. Missing numRows means unknown, not zero. Returns
repository IDs and hf:// URIs.
Args:
query: Name/prefix search (not semantic or README text). Omit to browse.
authorsAny: OR of owners: user/org names or profile uris (items[].author).
idsAny: OR of exact repository IDs (items[].id).
papersAny: OR of paper arXiv IDs (or hf://papers/ID uris).
tagsAll: AND of exact stored tags (no commas or spaces; dataset tags are namespaced).
tagsAnyGroups: AND of OR groups of tags; values without slash, space, plus or comma.
direction: asc only for id, createdAt, numParameters, numRows or mainSize.
limit: Maximum items to return (default 20, max 100).
cursor: nextCursor from a previous call (same args); full scans take 100s of pages.
sort: Sort key; numRows returns the first page only (no cursor).
fields: Fields to return instead of the defaults; kind/id/uri/url are always included.
taskCategoriesAll: AND of task categories, e.g. text-classification.
sizeCategoriesAll: AND of size buckets, e.g. 1K<n<10K.
modalitiesAll: AND of modalities (text, image, audio, video, tabular, 3d, geospatial, document)
formatsAll: AND of format values, e.g. parquet; compiled as format:VALUE.
librariesAll: AND of dataset libraries, e.g. pandas.
languagesAll: AND of language codes, e.g. en.
licensesAll: AND of licenses, e.g. apache-2.0.
datasetType: Only official benchmarks, agent traces or RL environments.
Returns: {
nextCursor: str | None,
returnedCount: int,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, unknownOwners: list[str]},
items: list[{kind: Literal["dataset"], id: str, uri: str, url: str, author: str, createdAt: str, lastModified: str, likes: float, private: bool, disabled: bool, sha: str, tags: list[str], trendingScore: float, downloads: float, downloadsAllTime: float, gated: bool | Literal["auto", "manual"], numRows: float, mainSize: float, description: str, citation: str, paperswithcodeId: str}],
}
"""
.../**
* Search Hugging Face dataset repositories (training data, benchmarks, eval sets) by name, or
* browse. Filter by owner, task category, modality, format, language, license, library or size
* bucket, including benchmark and agent-trace tags. Sort by downloads, likes, trending, date or
* stored size. For bulk row counts, use sort="numRows" (first page only); batch known IDs with
* idsAny and set limit to the batch size. Missing numRows means unknown, not zero. Returns
* repository IDs and hf:// URIs.
*/
declare function hf_datasets_search(args: {
// Name/prefix search (not semantic or README text). Omit to browse.
query?: string;
// OR of owners: user/org names or profile uris (items[].author).
authorsAny?: string[];
// OR of exact repository IDs (items[].id).
idsAny?: string[];
// OR of paper arXiv IDs (or hf://papers/ID uris).
papersAny?: string[];
// AND of exact stored tags (no commas or spaces; dataset tags are namespaced).
tagsAll?: string[];
// AND of OR groups of tags; values without slash, space, plus or comma.
tagsAnyGroups?: string[][];
// asc only for id, createdAt, numParameters, numRows or mainSize. @default "desc"
direction?: "asc" | "desc";
// Maximum items to return (default 20, max 100). @default 20
limit?: number;
// nextCursor from a previous call (same args); full scans take 100s of pages.
cursor?: string | null;
// Sort key; numRows returns the first page only (no cursor). @default "trendingScore"
sort?: "trendingScore" | "likes" | "likes30d" | "lastModified" | "createdAt" | "id" | "downloads" | "numRows" | "mainSize";
// Fields to return instead of the defaults; kind/id/uri/url are always included.
fields?: Array<"author" | "createdAt" | "lastModified" | "likes" | "private" | "disabled" | "sha" | "tags" | "trendingScore" | "downloads" | "downloadsAllTime" | "gated" | "mainSize" | "description" | "citation" | "paperswithcodeId">;
gated?: boolean;
// AND of task categories, e.g. text-classification.
taskCategoriesAll?: string[];
// AND of size buckets, e.g. 1K<n<10K.
sizeCategoriesAll?: string[];
// AND of modalities (text, image, audio, video, tabular, 3d, geospatial, document)
modalitiesAll?: string[];
// AND of format values, e.g. parquet; compiled as format:VALUE.
formatsAll?: string[];
// AND of dataset libraries, e.g. pandas.
librariesAll?: string[];
// AND of language codes, e.g. en.
languagesAll?: string[];
// AND of licenses, e.g. apache-2.0.
licensesAll?: string[];
// Only official benchmarks, agent traces or RL environments.
datasetType?: "benchmark" | "agent-traces" | "rl-environment";
}): Promise<{
nextCursor: string | null;
returnedCount: number;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; unknownOwners?: string[]; };
items: Array<{ kind: "dataset"; id: string; uri: string; url: string; author?: string; createdAt?: string; lastModified?: string; likes?: number; private?: boolean; disabled?: boolean; sha?: string; tags?: string[]; trendingScore?: number; downloads?: number; downloadsAllTime?: number; gated?: boolean | "auto" | "manual"; numRows?: number; mainSize?: number; description?: string; citation?: string; paperswithcodeId?: string; }>;
}>;input schema{
"type": "object",
"properties": {
"query": {
"description": "Name/prefix search (not semantic or README text). Omit to browse.",
"type": "string"
},
"authorsAny": {
"description": "OR of owners: user/org names or profile uris (items[].author).",
"type": "array",
"items": {
"type": "string"
}
},
"idsAny": {
"description": "OR of exact repository IDs (items[].id).",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"papersAny": {
"description": "OR of paper arXiv IDs (or hf://papers/ID uris).",
"type": "array",
"items": {
"type": "string",
"description": "arXiv ID, e.g. 2501.00001; hf://papers/ID uris are accepted."
}
},
"tagsAll": {
"description": "AND of exact stored tags (no commas or spaces; dataset tags are namespaced).",
"type": "array",
"items": {
"type": "string"
}
},
"tagsAnyGroups": {
"description": "AND of OR groups of tags; values without slash, space, plus or comma.",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"direction": {
"default": "desc",
"description": "asc only for id, createdAt, numParameters, numRows or mainSize.",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"limit": {
"default": 20,
"description": "Maximum items to return (default 20, max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); full scans take 100s of pages.",
"type": [
"string",
"null"
]
},
"sort": {
"default": "trendingScore",
"description": "Sort key; numRows returns the first page only (no cursor).",
"type": "string",
"enum": [
"trendingScore",
"likes",
"likes30d",
"lastModified",
"createdAt",
"id",
"downloads",
"numRows",
"mainSize"
]
},
"fields": {
"description": "Fields to return instead of the defaults; kind/id/uri/url are always included.",
"type": "array",
"items": {
"type": "string",
"enum": [
"author",
"createdAt",
"lastModified",
"likes",
"private",
"disabled",
"sha",
"tags",
"trendingScore",
"downloads",
"downloadsAllTime",
"gated",
"mainSize",
"description",
"citation",
"paperswithcodeId"
]
}
},
"gated": {
"type": "boolean"
},
"taskCategoriesAll": {
"description": "AND of task categories, e.g. text-classification.",
"type": "array",
"items": {
"type": "string"
}
},
"sizeCategoriesAll": {
"description": "AND of size buckets, e.g. 1K<n<10K.",
"type": "array",
"items": {
"type": "string"
}
},
"modalitiesAll": {
"description": "AND of modalities (text, image, audio, video, tabular, 3d, geospatial, document)",
"type": "array",
"items": {
"type": "string"
}
},
"formatsAll": {
"description": "AND of format values, e.g. parquet; compiled as format:VALUE.",
"type": "array",
"items": {
"type": "string"
}
},
"librariesAll": {
"description": "AND of dataset libraries, e.g. pandas.",
"type": "array",
"items": {
"type": "string"
}
},
"languagesAll": {
"description": "AND of language codes, e.g. en.",
"type": "array",
"items": {
"type": "string"
}
},
"licensesAll": {
"description": "AND of licenses, e.g. apache-2.0.",
"type": "array",
"items": {
"type": "string"
}
},
"datasetType": {
"description": "Only official benchmarks, agent traces or RL environments.",
"type": "string",
"enum": [
"benchmark",
"agent-traces",
"rl-environment"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"nextCursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"returnedCount": {
"type": "integer"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"unknownOwners": {
"description": "authorsAny names matching no user or organization.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"hasMore"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "dataset"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"likes": {
"type": "number"
},
"private": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"sha": {
"type": "string"
},
"tags": {
"description": "Exact values for tag filters.",
"type": "array",
"items": {
"type": "string"
}
},
"trendingScore": {
"type": "number"
},
"downloads": {
"type": "number",
"description": "Last 30 days."
},
"downloadsAllTime": {
"type": "number"
},
"gated": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [
"auto",
"manual"
]
}
]
},
"numRows": {
"description": "Only with sort numRows.",
"type": "number"
},
"mainSize": {
"description": "Bytes on the main branch.",
"type": "number"
},
"description": {
"type": "string"
},
"citation": {
"type": "string"
},
"paperswithcodeId": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
}
},
"required": [
"nextCursor",
"returnedCount",
"completeness",
"items"
]
} | GET /api/datasets |
hf_spaces_listanonymousread-only replaces hf_fs, hub_repo_details, hub_repo_search | async def hf_spaces_list(
*,
query: str | None = None,
authorsAny: list[str] | None = None,
idsAny: list[str] | None = None,
papersAny: list[str] | None = None,
tagsAll: list[str] | None = None,
tagsAnyGroups: list[list[str]] | None = None,
direction: Literal["asc", "desc"] = "desc",
limit: int = 20,
cursor: str | None | None = None,
sort: Literal["trendingScore", "likes", "likes30d", "lastModified", "createdAt", "id"] = "trendingScore",
fields: list[Literal["author", "createdAt", "lastModified", "likes", "private", "disabled", "sha", "tags", "trendingScore", "sdk", "runtime", "models", "datasets", "region", "subdomain", "title", "emoji", "shortDescription"]] | None = None,
sdksAny: list[Literal["gradio", "docker", "static", "streamlit"]] | None = None,
stagesAny: list[Literal["NO_APP_FILE", "CONFIG_ERROR", "BUILDING", "BUILD_ERROR", "APP_STARTING", "RUNNING", "RUNNING_BUILDING", "RUNNING_APP_STARTING", "RUNTIME_ERROR", "DELETING", "STOPPED", "PAUSED", "SLEEPING"]] | None = None,
runningOnly: bool | None = None,
hardwareCurrentAny: list[str] | None = None,
hardwareRequestedAny: list[str] | None = None,
modelsAny: list[str] | None = None,
datasetsAny: list[str] | None = None,
mcpOnly: bool = False,
) -> dict[str, Any]:
"""List Hugging Face Spaces (apps, demos) by owner or organization, or browse repository names.
Filter by SDK such as Gradio, Docker or static, running state, concrete hardware flavor, MCP
server tag, exact tags or linked models and datasets. Sort by likes, trending or recency.
Returns IDs and links, with optional SDK and runtime hardware details; listings support cursor
paging. See hf_spaces_search.
Args:
query: Name/prefix search (not semantic or README text). Omit to browse.
authorsAny: OR of owners: user/org names or profile uris (items[].author).
idsAny: OR of exact repository IDs (items[].id).
papersAny: OR of paper arXiv IDs (or hf://papers/ID uris).
tagsAll: AND of exact stored tags (no commas or spaces; dataset tags are namespaced).
tagsAnyGroups: AND of OR groups of tags; values without slash, space, plus or comma.
direction: asc only for id, createdAt, numParameters, numRows or mainSize.
limit: Maximum items to return (default 20, max 100).
cursor: nextCursor from a previous call (same args); full scans take 100s of pages.
fields: Fields to return instead of the defaults; kind/id/uri/url are always included.
sdksAny: OR of SDKs; streamlit is deprecated.
stagesAny: OR of runtime stages, e.g. RUNNING, SLEEPING or BUILD_ERROR.
runningOnly: Only running Spaces; not with stagesAny.
hardwareCurrentAny: OR of hf_hardware_flavors ids (e.g. t4-small); avoid pairing with query/tags.
hardwareRequestedAny: OR of requested flavor ids, e.g. zero-a10g, t4-small (may differ from current).
modelsAny: OR of linked model IDs from hf_models_search items[].id.
datasetsAny: OR of linked dataset IDs from hf_datasets_search items[].id.
mcpOnly: Require the stored mcp-server tag; this is not a live MCP health check.
Returns: {
nextCursor: str | None,
returnedCount: int,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, unknownOwners: list[str]},
items: list[{kind: Literal["space"], id: str, uri: str, url: str, author: str, createdAt: str, lastModified: str, likes: float, private: bool, disabled: bool, sha: str, tags: list[str], trendingScore: float, sdk: str, runtime: dict[str, Any], models: list[dict[str, Any]], datasets: list[dict[str, Any]], region: str, subdomain: str, title: str, emoji: str, shortDescription: str, aiShortDescription: str, category: str, semanticScore: float}],
}
"""
.../**
* List Hugging Face Spaces (apps, demos) by owner or organization, or browse repository names.
* Filter by SDK such as Gradio, Docker or static, running state, concrete hardware flavor, MCP
* server tag, exact tags or linked models and datasets. Sort by likes, trending or recency.
* Returns IDs and links, with optional SDK and runtime hardware details; listings support cursor
* paging. See hf_spaces_search.
*/
declare function hf_spaces_list(args: {
// Name/prefix search (not semantic or README text). Omit to browse.
query?: string;
// OR of owners: user/org names or profile uris (items[].author).
authorsAny?: string[];
// OR of exact repository IDs (items[].id).
idsAny?: string[];
// OR of paper arXiv IDs (or hf://papers/ID uris).
papersAny?: string[];
// AND of exact stored tags (no commas or spaces; dataset tags are namespaced).
tagsAll?: string[];
// AND of OR groups of tags; values without slash, space, plus or comma.
tagsAnyGroups?: string[][];
// asc only for id, createdAt, numParameters, numRows or mainSize. @default "desc"
direction?: "asc" | "desc";
// Maximum items to return (default 20, max 100). @default 20
limit?: number;
// nextCursor from a previous call (same args); full scans take 100s of pages.
cursor?: string | null;
// @default "trendingScore"
sort?: "trendingScore" | "likes" | "likes30d" | "lastModified" | "createdAt" | "id";
// Fields to return instead of the defaults; kind/id/uri/url are always included.
fields?: Array<"author" | "createdAt" | "lastModified" | "likes" | "private" | "disabled" | "sha" | "tags" | "trendingScore" | "sdk" | "runtime" | "models" | "datasets" | "region" | "subdomain" | "title" | "emoji" | "shortDescription">;
// OR of SDKs; streamlit is deprecated.
sdksAny?: Array<"gradio" | "docker" | "static" | "streamlit">;
// OR of runtime stages, e.g. RUNNING, SLEEPING or BUILD_ERROR.
stagesAny?: Array<"NO_APP_FILE" | "CONFIG_ERROR" | "BUILDING" | "BUILD_ERROR" | "APP_STARTING" | "RUNNING" | "RUNNING_BUILDING" | "RUNNING_APP_STARTING" | "RUNTIME_ERROR" | "DELETING" | "STOPPED" | "PAUSED" | "SLEEPING">;
// Only running Spaces; not with stagesAny.
runningOnly?: boolean;
// OR of hf_hardware_flavors ids (e.g. t4-small); avoid pairing with query/tags.
hardwareCurrentAny?: string[];
// OR of requested flavor ids, e.g. zero-a10g, t4-small (may differ from current).
hardwareRequestedAny?: string[];
// OR of linked model IDs from hf_models_search items[].id.
modelsAny?: string[];
// OR of linked dataset IDs from hf_datasets_search items[].id.
datasetsAny?: string[];
// Require the stored mcp-server tag; this is not a live MCP health check. @default false
mcpOnly?: boolean;
}): Promise<{
nextCursor: string | null;
returnedCount: number;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; unknownOwners?: string[]; };
items: Array<{ kind: "space"; id: string; uri: string; url: string; author?: string; createdAt?: string; lastModified?: string; likes?: number; private?: boolean; disabled?: boolean; sha?: string; tags?: string[]; trendingScore?: number; sdk?: string; runtime?: Record<string, unknown>; models?: Record<string, unknown>[]; datasets?: Record<string, unknown>[]; region?: string; subdomain?: string; title?: string; emoji?: string; shortDescription?: string; aiShortDescription?: string; category?: string; semanticScore?: number; }>;
}>;input schema{
"type": "object",
"properties": {
"query": {
"description": "Name/prefix search (not semantic or README text). Omit to browse.",
"type": "string"
},
"authorsAny": {
"description": "OR of owners: user/org names or profile uris (items[].author).",
"type": "array",
"items": {
"type": "string"
}
},
"idsAny": {
"description": "OR of exact repository IDs (items[].id).",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"papersAny": {
"description": "OR of paper arXiv IDs (or hf://papers/ID uris).",
"type": "array",
"items": {
"type": "string",
"description": "arXiv ID, e.g. 2501.00001; hf://papers/ID uris are accepted."
}
},
"tagsAll": {
"description": "AND of exact stored tags (no commas or spaces; dataset tags are namespaced).",
"type": "array",
"items": {
"type": "string"
}
},
"tagsAnyGroups": {
"description": "AND of OR groups of tags; values without slash, space, plus or comma.",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"direction": {
"default": "desc",
"description": "asc only for id, createdAt, numParameters, numRows or mainSize.",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"limit": {
"default": 20,
"description": "Maximum items to return (default 20, max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); full scans take 100s of pages.",
"type": [
"string",
"null"
]
},
"sort": {
"default": "trendingScore",
"type": "string",
"enum": [
"trendingScore",
"likes",
"likes30d",
"lastModified",
"createdAt",
"id"
]
},
"fields": {
"description": "Fields to return instead of the defaults; kind/id/uri/url are always included.",
"type": "array",
"items": {
"type": "string",
"enum": [
"author",
"createdAt",
"lastModified",
"likes",
"private",
"disabled",
"sha",
"tags",
"trendingScore",
"sdk",
"runtime",
"models",
"datasets",
"region",
"subdomain",
"title",
"emoji",
"shortDescription"
]
}
},
"sdksAny": {
"description": "OR of SDKs; streamlit is deprecated.",
"type": "array",
"items": {
"type": "string",
"enum": [
"gradio",
"docker",
"static",
"streamlit"
]
}
},
"stagesAny": {
"description": "OR of runtime stages, e.g. RUNNING, SLEEPING or BUILD_ERROR.",
"type": "array",
"items": {
"type": "string",
"enum": [
"NO_APP_FILE",
"CONFIG_ERROR",
"BUILDING",
"BUILD_ERROR",
"APP_STARTING",
"RUNNING",
"RUNNING_BUILDING",
"RUNNING_APP_STARTING",
"RUNTIME_ERROR",
"DELETING",
"STOPPED",
"PAUSED",
"SLEEPING"
]
}
},
"runningOnly": {
"description": "Only running Spaces; not with stagesAny.",
"type": "boolean"
},
"hardwareCurrentAny": {
"description": "OR of hf_hardware_flavors ids (e.g. t4-small); avoid pairing with query/tags.",
"type": "array",
"items": {
"type": "string"
}
},
"hardwareRequestedAny": {
"description": "OR of requested flavor ids, e.g. zero-a10g, t4-small (may differ from current).",
"type": "array",
"items": {
"type": "string"
}
},
"modelsAny": {
"description": "OR of linked model IDs from hf_models_search items[].id.",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"datasetsAny": {
"description": "OR of linked dataset IDs from hf_datasets_search items[].id.",
"type": "array",
"items": {
"description": "Repository ID (owner/name) or returned uri.",
"type": "string"
}
},
"mcpOnly": {
"default": false,
"description": "Require the stored mcp-server tag; this is not a live MCP health check.",
"type": "boolean"
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"nextCursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"returnedCount": {
"type": "integer"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"unknownOwners": {
"description": "authorsAny names matching no user or organization.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"hasMore"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "space"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"likes": {
"type": "number"
},
"private": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"sha": {
"type": "string"
},
"tags": {
"description": "Exact values for tag filters.",
"type": "array",
"items": {
"type": "string"
}
},
"trendingScore": {
"type": "number"
},
"sdk": {
"type": "string"
},
"runtime": {
"type": "object"
},
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "model"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"datasets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "dataset"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"region": {
"type": "string"
},
"subdomain": {
"type": "string"
},
"title": {
"type": "string"
},
"emoji": {
"type": "string"
},
"shortDescription": {
"type": "string"
},
"aiShortDescription": {
"type": "string"
},
"category": {
"description": "Upstream label; not always a valid category argument.",
"type": "string"
},
"semanticScore": {
"description": "Relevance, not a probability.",
"type": "number"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
}
},
"required": [
"nextCursor",
"returnedCount",
"completeness",
"items"
]
} | GET /api/spaces |
hf_spaces_searchanonymousread-only replaces hf_fs, dynamic_space | async def hf_spaces_search(
*,
query: str | None = None,
category: Literal["image-generation", "video-generation", "text-generation", "language-translation", "speech-synthesis", "voice-cloning", "face-recognition", "object-detection", "pose-estimation", "text-analysis", "sentiment-analysis", "question-answering", "code-generation", "data-visualization", "3d-modeling", "image-editing", "background-removal", "image-upscaling", "ocr", "document-analysis", "visual-qa", "image-captioning", "chatbots", "text-summarization", "music-generation", "medical-imaging", "financial-analysis", "game-ai", "model-benchmarking", "fine-tuning-tools", "dataset-creation", "anomaly-detection", "recommendation-systems", "character-animation", "style-transfer", "agent-environment", "image", "other"] | None = None,
sdksAny: list[Literal["gradio", "docker", "static", "streamlit"]] | None = None,
tagsAny: list[str] | None = None,
includeNonRunning: bool = False,
mcpOnly: bool = False,
limit: int = 20,
source: Literal["hub", "curated"] = "hub",
) -> dict[str, Any]:
"""Find Hugging Face Spaces (apps, Gradio demos) by use case, such as image generation. Multiword
queries use hybrid semantic search; one-word queries match names and tags. Select a category or
filter by SDK, tags, running state or MCP server tag. Returns relevance-ranked repository IDs
and links from a bounded candidate set without paging. See hf_spaces_list.
Args:
query: What the Space should do, in plain words (semantic search).
category: Space category slug, e.g. image-generation, chatbots or ocr.
sdksAny: OR of SDKs; sent as repeated sdk parameters, never CSV.
tagsAny: OR of tags, ANDed with the other filters.
includeNonRunning: Also return Spaces that are not running.
mcpOnly: Only Spaces tagged mcp-server (not a health check).
limit: Maximum items to return (default 20, max 100).
source: hub: Hub search; curated: this server's curated Space list, if configured.
Returns: {
nextCursor: None,
returnedCount: int,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
items: list[{kind: Literal["space"], id: str, uri: str, url: str, author: str, createdAt: str, lastModified: str, likes: float, private: bool, disabled: bool, sha: str, tags: list[str], trendingScore: float, sdk: str, runtime: dict[str, Any], models: list[dict[str, Any]], datasets: list[dict[str, Any]], region: str, subdomain: str, title: str, emoji: str, shortDescription: str, aiShortDescription: str, category: str, semanticScore: float}],
candidateCount: int, # Candidates checked (semantic search returns at most 120), not a total.
eligibleCount: int, # Candidates passing the filters; above returnedCount means limit dropped some.
}
"""
.../**
* Find Hugging Face Spaces (apps, Gradio demos) by use case, such as image generation. Multiword
* queries use hybrid semantic search; one-word queries match names and tags. Select a category or
* filter by SDK, tags, running state or MCP server tag. Returns relevance-ranked repository IDs
* and links from a bounded candidate set without paging. See hf_spaces_list.
*/
declare function hf_spaces_search(args: {
// What the Space should do, in plain words (semantic search).
query?: string;
// Space category slug, e.g. image-generation, chatbots or ocr.
category?: "image-generation" | "video-generation" | "text-generation" | "language-translation" | "speech-synthesis" | "voice-cloning" | "face-recognition" | "object-detection" | "pose-estimation" | "text-analysis" | "sentiment-analysis" | "question-answering" | "code-generation" | "data-visualization" | "3d-modeling" | "image-editing" | "background-removal" | "image-upscaling" | "ocr" | "document-analysis" | "visual-qa" | "image-captioning" | "chatbots" | "text-summarization" | "music-generation" | "medical-imaging" | "financial-analysis" | "game-ai" | "model-benchmarking" | "fine-tuning-tools" | "dataset-creation" | "anomaly-detection" | "recommendation-systems" | "character-animation" | "style-transfer" | "agent-environment" | "image" | "other";
// OR of SDKs; sent as repeated sdk parameters, never CSV.
sdksAny?: Array<"gradio" | "docker" | "static" | "streamlit">;
// OR of tags, ANDed with the other filters.
tagsAny?: string[];
// Also return Spaces that are not running. @default false
includeNonRunning?: boolean;
// Only Spaces tagged mcp-server (not a health check). @default false
mcpOnly?: boolean;
// Maximum items to return (default 20, max 100). @default 20
limit?: number;
// hub: Hub search; curated: this server's curated Space list, if configured. @default "hub"
source?: "hub" | "curated";
}): Promise<{
nextCursor: null;
returnedCount: number;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
items: Array<{ kind: "space"; id: string; uri: string; url: string; author?: string; createdAt?: string; lastModified?: string; likes?: number; private?: boolean; disabled?: boolean; sha?: string; tags?: string[]; trendingScore?: number; sdk?: string; runtime?: Record<string, unknown>; models?: Record<string, unknown>[]; datasets?: Record<string, unknown>[]; region?: string; subdomain?: string; title?: string; emoji?: string; shortDescription?: string; aiShortDescription?: string; category?: string; semanticScore?: number; }>;
// Candidates checked (semantic search returns at most 120), not a total.
candidateCount: number;
// Candidates passing the filters; above returnedCount means limit dropped some.
eligibleCount: number;
}>;input schema{
"type": "object",
"properties": {
"query": {
"description": "What the Space should do, in plain words (semantic search).",
"type": "string"
},
"category": {
"description": "Space category slug, e.g. image-generation, chatbots or ocr.",
"type": "string",
"enum": [
"image-generation",
"video-generation",
"text-generation",
"language-translation",
"speech-synthesis",
"voice-cloning",
"face-recognition",
"object-detection",
"pose-estimation",
"text-analysis",
"sentiment-analysis",
"question-answering",
"code-generation",
"data-visualization",
"3d-modeling",
"image-editing",
"background-removal",
"image-upscaling",
"ocr",
"document-analysis",
"visual-qa",
"image-captioning",
"chatbots",
"text-summarization",
"music-generation",
"medical-imaging",
"financial-analysis",
"game-ai",
"model-benchmarking",
"fine-tuning-tools",
"dataset-creation",
"anomaly-detection",
"recommendation-systems",
"character-animation",
"style-transfer",
"agent-environment",
"image",
"other"
]
},
"sdksAny": {
"description": "OR of SDKs; sent as repeated sdk parameters, never CSV.",
"type": "array",
"items": {
"type": "string",
"enum": [
"gradio",
"docker",
"static",
"streamlit"
]
}
},
"tagsAny": {
"description": "OR of tags, ANDed with the other filters.",
"type": "array",
"items": {
"type": "string"
}
},
"includeNonRunning": {
"default": false,
"description": "Also return Spaces that are not running.",
"type": "boolean"
},
"mcpOnly": {
"default": false,
"description": "Only Spaces tagged mcp-server (not a health check).",
"type": "boolean"
},
"limit": {
"default": 20,
"description": "Maximum items to return (default 20, max 100).",
"type": "integer"
},
"source": {
"default": "hub",
"description": "hub: Hub search; curated: this server's curated Space list, if configured.",
"type": "string",
"enum": [
"hub",
"curated"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"nextCursor": {
"type": "null"
},
"returnedCount": {
"type": "integer"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "space"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"likes": {
"type": "number"
},
"private": {
"type": "boolean"
},
"disabled": {
"type": "boolean"
},
"sha": {
"type": "string"
},
"tags": {
"description": "Exact values for tag filters.",
"type": "array",
"items": {
"type": "string"
}
},
"trendingScore": {
"type": "number"
},
"sdk": {
"type": "string"
},
"runtime": {
"type": "object"
},
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "model"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"datasets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "dataset"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"region": {
"type": "string"
},
"subdomain": {
"type": "string"
},
"title": {
"type": "string"
},
"emoji": {
"type": "string"
},
"shortDescription": {
"type": "string"
},
"aiShortDescription": {
"type": "string"
},
"category": {
"description": "Upstream label; not always a valid category argument.",
"type": "string"
},
"semanticScore": {
"description": "Relevance, not a probability.",
"type": "number"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"candidateCount": {
"type": "integer",
"description": "Candidates checked (semantic search returns at most 120), not a total."
},
"eligibleCount": {
"type": "integer",
"description": "Candidates passing the filters; above returnedCount means limit dropped some."
}
},
"required": [
"nextCursor",
"returnedCount",
"completeness",
"items",
"candidateCount",
"eligibleCount"
]
} | GET /api/spaces/semantic-search |
hf_trendinganonymousread-only replaces hf_fs | async def hf_trending(
*,
kind: Literal["all", "model", "dataset", "space"] = "all",
limit: int = 20,
) -> dict[str, Any]:
"""Show Hugging Face's curated trending feed of hot models, datasets and Spaces. Browse the mixed
feed or select one repository kind. Returns repository IDs, page links and hf:// URIs, with
metadata such as likes or downloads when supplied; bounded to 20 items without paging. See
hf_models_search.
Args:
kind: Repository kind; "all" mixes models, datasets and Spaces.
limit: Items to return (upstream maximum 20).
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, title: str, description: str, pipelineTag: str, sdk: str, likes: float, downloads: float, numParameters: float, gated: bool | str, private: bool, lastModified: str}],
returnedCount: int,
nextCursor: None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, publicOnly: bool, estimatedTotal: float},
}
"""
.../**
* Show Hugging Face's curated trending feed of hot models, datasets and Spaces. Browse the mixed
* feed or select one repository kind. Returns repository IDs, page links and hf:// URIs, with
* metadata such as likes or downloads when supplied; bounded to 20 items without paging. See
* hf_models_search.
*/
declare function hf_trending(args: {
// Repository kind; "all" mixes models, datasets and Spaces. @default "all"
kind?: "all" | "model" | "dataset" | "space";
// Items to return (upstream maximum 20). @default 20
limit?: number;
}): Promise<{
items: Array<{ kind: string; id: string; uri: string; url: string; title?: string; description?: string; pipelineTag?: string; sdk?: string; likes?: number; downloads?: number; numParameters?: number; gated?: boolean | string; private?: boolean; lastModified?: string; }>;
returnedCount: number;
nextCursor: null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; publicOnly?: boolean; estimatedTotal?: number; };
}>;input schema{
"type": "object",
"properties": {
"kind": {
"default": "all",
"description": "Repository kind; \"all\" mixes models, datasets and Spaces.",
"type": "string",
"enum": [
"all",
"model",
"dataset",
"space"
]
},
"limit": {
"default": 20,
"description": "Items to return (upstream maximum 20).",
"type": "integer"
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"pipelineTag": {
"type": "string"
},
"sdk": {
"type": "string"
},
"likes": {
"type": "number"
},
"downloads": {
"type": "number"
},
"numParameters": {
"type": "number"
},
"gated": {
"type": [
"boolean",
"string"
]
},
"private": {
"type": "boolean"
},
"lastModified": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": "null"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"publicOnly": {
"type": "boolean"
},
"estimatedTotal": {
"description": "Estimate, not exact.",
"type": "number"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/trending |
hf_repo_fulltext_searchanonymousread-only new | async def hf_repo_fulltext_search(
*,
query: str,
kindsAny: list[Literal["model", "dataset", "space"]] | None = None,
authorsAny: list[str] | None = None,
idsAny: list[str] | None = None,
limit: int = 20,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Search Hugging Face README text (model cards, dataset cards) for phrases with full-text
matching. Find content such as 'trained on SEC filings' across models, datasets and Spaces.
Narrow by repository kind and an owner-or-repository selection. Results identify matching
repositories and can include matched-file links and text excerpts. Public repositories only.
Args:
query: Phrase to find in README/card text, e.g. "trained on SEC filings".
kindsAny: Restrict to these repository kinds; default all.
authorsAny: Only repositories of these users/orgs (names or profile uris; max 10).
idsAny: Only these repositories (items[].uri or owner/name); ORed with authorsAny.
limit: Hits per page (max 100).
cursor: nextCursor from a previous call (same args); stops at 1000 hits per query.
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, file: str, fileUri: str, excerpt: str, likes: float, tags: list[str], lastModified: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, publicOnly: bool, estimatedTotal: float},
}
"""
.../**
* Search Hugging Face README text (model cards, dataset cards) for phrases with full-text
* matching. Find content such as 'trained on SEC filings' across models, datasets and Spaces.
* Narrow by repository kind and an owner-or-repository selection. Results identify matching
* repositories and can include matched-file links and text excerpts. Public repositories only.
*/
declare function hf_repo_fulltext_search(args: {
// Phrase to find in README/card text, e.g. "trained on SEC filings".
query: string;
// Restrict to these repository kinds; default all.
kindsAny?: Array<"model" | "dataset" | "space">;
// Only repositories of these users/orgs (names or profile uris; max 10).
authorsAny?: string[];
// Only these repositories (items[].uri or owner/name); ORed with authorsAny.
idsAny?: string[];
// Hits per page (max 100). @default 20
limit?: number;
// nextCursor from a previous call (same args); stops at 1000 hits per query.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: string; id: string; uri: string; url: string; file?: string; fileUri?: string; excerpt?: string; likes?: number; tags?: string[]; lastModified?: string; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; publicOnly?: boolean; estimatedTotal?: number; };
}>;input schema{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Phrase to find in README/card text, e.g. \"trained on SEC filings\"."
},
"kindsAny": {
"description": "Restrict to these repository kinds; default all.",
"type": "array",
"items": {
"type": "string",
"enum": [
"model",
"dataset",
"space"
]
}
},
"authorsAny": {
"description": "Only repositories of these users/orgs (names or profile uris; max 10).",
"type": "array",
"items": {
"type": "string"
}
},
"idsAny": {
"description": "Only these repositories (items[].uri or owner/name); ORed with authorsAny.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"default": 20,
"description": "Hits per page (max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); stops at 1000 hits per query.",
"type": [
"string",
"null"
]
}
},
"required": [
"query"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"file": {
"type": "string"
},
"fileUri": {
"description": "For hf_repo_read_text.",
"type": "string"
},
"excerpt": {
"type": "string"
},
"likes": {
"type": "number"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"lastModified": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"publicOnly": {
"type": "boolean"
},
"estimatedTotal": {
"description": "Estimate, not exact.",
"type": "number"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/search/full-text |
hf_hub_lookupanonymousread-only new | async def hf_hub_lookup(
*,
query: str,
kindsAny: list[Literal["model", "dataset", "space", "user", "org", "paper", "collection", "bucket"]] | None = None,
limit: int = 5,
) -> dict[str, Any]:
"""Resolve a partial or fuzzy name to an exact ID across models, datasets, Spaces, users,
organizations, papers, collections and buckets. Returns best-first matches as one items list
(kind tells the type), with hf:// URIs or profile URLs and upstream counts per kind where
reported. Results are capped per type.
Args:
query: Partial or fuzzy name to look up.
kindsAny: Result types to include; default all.
limit: Maximum matches per type (max 20).
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, title: str, private: bool}], # Best first within each kind.
returnedCount: int,
numByKind: dict[str, float], # Upstream totals, where reported.
}
"""
.../**
* Resolve a partial or fuzzy name to an exact ID across models, datasets, Spaces, users,
* organizations, papers, collections and buckets. Returns best-first matches as one items list
* (kind tells the type), with hf:// URIs or profile URLs and upstream counts per kind where
* reported. Results are capped per type.
*/
declare function hf_hub_lookup(args: {
// Partial or fuzzy name to look up.
query: string;
// Result types to include; default all.
kindsAny?: Array<"model" | "dataset" | "space" | "user" | "org" | "paper" | "collection" | "bucket">;
// Maximum matches per type (max 20). @default 5
limit?: number;
}): Promise<{
// Best first within each kind.
items: Array<{ kind: string; id: string; uri: string; url: string; title?: string; private?: boolean; }>;
returnedCount: number;
// Upstream totals, where reported.
numByKind: Record<string, number>;
}>;input schema{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Partial or fuzzy name to look up."
},
"kindsAny": {
"description": "Result types to include; default all.",
"type": "array",
"items": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"user",
"org",
"paper",
"collection",
"bucket"
]
}
},
"limit": {
"default": 5,
"description": "Maximum matches per type (max 20).",
"type": "integer"
}
},
"required": [
"query"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"private": {
"type": "boolean"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"description": "Best first within each kind."
},
"returnedCount": {
"type": "integer"
},
"numByKind": {
"type": "object",
"description": "Upstream totals, where reported.",
"additionalProperties": {
"type": "number"
}
}
},
"required": [
"items",
"returnedCount",
"numByKind"
]
} | GET /api/quicksearch |
hf_filter_valuesanonymousread-only new | async def hf_filter_values(
*,
catalog: Literal["model_tags", "dataset_tags", "tasks"],
group: str | None = None,
query: str | None = None,
limit: int = 100,
) -> dict[str, Any]:
"""List exact filter values and tag IDs by group: model task, library, license, language or region;
dataset modality, format, size bucket or task category. Also returns the pipeline task catalog.
Filter IDs and labels by text; results include per-group counts and truncation flags.
Args:
catalog: model_tags/dataset_tags: tag values by group; tasks: pipeline tasks.
group: Tag group, e.g. library, license, language, task_categories. Omit for all.
query: Case-insensitive substring matched against value id and label.
limit: Maximum values per group (max 1000).
Returns: {
catalog: str,
groups: list[{group: str, values: list[dict[str, Any]], returnedCount: int, numValues: int, truncated: bool}],
}
"""
.../**
* List exact filter values and tag IDs by group: model task, library, license, language or region;
* dataset modality, format, size bucket or task category. Also returns the pipeline task catalog.
* Filter IDs and labels by text; results include per-group counts and truncation flags.
*/
declare function hf_filter_values(args: {
// model_tags/dataset_tags: tag values by group; tasks: pipeline tasks.
catalog: "model_tags" | "dataset_tags" | "tasks";
// Tag group, e.g. library, license, language, task_categories. Omit for all.
group?: string;
// Case-insensitive substring matched against value id and label.
query?: string;
// Maximum values per group (max 1000). @default 100
limit?: number;
}): Promise<{
catalog: string;
groups: Array<{ group: string; values: Record<string, unknown>[]; returnedCount: number; numValues: number; truncated: boolean; }>;
}>;input schema{
"type": "object",
"properties": {
"catalog": {
"type": "string",
"enum": [
"model_tags",
"dataset_tags",
"tasks"
],
"description": "model_tags/dataset_tags: tag values by group; tasks: pipeline tasks."
},
"group": {
"description": "Tag group, e.g. library, license, language, task_categories. Omit for all.",
"type": "string"
},
"query": {
"description": "Case-insensitive substring matched against value id and label.",
"type": "string"
},
"limit": {
"default": 100,
"description": "Maximum values per group (max 1000).",
"type": "integer"
}
},
"required": [
"catalog"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"catalog": {
"type": "string"
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Exact filter value, e.g. license:mit."
},
"label": {
"type": "string"
},
"subType": {
"type": "string"
},
"libraries": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id"
]
}
},
"returnedCount": {
"type": "integer"
},
"numValues": {
"type": "integer",
"description": "Before query/limit."
},
"truncated": {
"type": "boolean"
}
},
"required": [
"group",
"values",
"returnedCount",
"numValues",
"truncated"
]
}
}
},
"required": [
"catalog",
"groups"
]
} | GET /api/models-tags-by-typeGET /api/datasets-tags-by-typeGET /api/tasks |
hf_hardware_flavorsanonymousread-only replaces create_repo | async def hf_hardware_flavors(*, scope: Literal["spaces", "jobs"] = "jobs") -> dict[str, Any]:
"""List Hugging Face hardware flavors (GPU, CPU compute tiers) for Jobs or Spaces. Returns flavor
IDs with accelerator model, GPU memory (VRAM), CPU, RAM, disk and USD cost per time unit when
supplied. Use the Jobs catalog for sandbox flavor selection too. GPU examples include T4, L4 and
A100; the live catalog governs flavors and prices.
Args:
scope: Catalog: "jobs" (flavor for Jobs/sandboxes) or "spaces" (Space hardware).
Returns: {
scope: Literal["spaces", "jobs"],
items: list[{id: str, prettyName: str, cpu: str, ram: str, ephemeralStorage: str, accelerator: dict[str, Any] | None, unitCostUsd: float, unitLabel: str}],
returnedCount: int,
}
"""
.../**
* List Hugging Face hardware flavors (GPU, CPU compute tiers) for Jobs or Spaces. Returns flavor
* IDs with accelerator model, GPU memory (VRAM), CPU, RAM, disk and USD cost per time unit when
* supplied. Use the Jobs catalog for sandbox flavor selection too. GPU examples include T4, L4 and
* A100; the live catalog governs flavors and prices.
*/
declare function hf_hardware_flavors(args: {
// Catalog: "jobs" (flavor for Jobs/sandboxes) or "spaces" (Space hardware). @default "jobs"
scope?: "spaces" | "jobs";
}): Promise<{
scope: "spaces" | "jobs";
items: Array<{ id: string; prettyName?: string; cpu?: string; ram?: string; ephemeralStorage?: string; accelerator: Record<string, unknown> | null; unitCostUsd?: number; unitLabel?: string; }>;
returnedCount: number;
}>;input schema{
"type": "object",
"properties": {
"scope": {
"default": "jobs",
"description": "Catalog: \"jobs\" (flavor for Jobs/sandboxes) or \"spaces\" (Space hardware).",
"type": "string",
"enum": [
"spaces",
"jobs"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"spaces",
"jobs"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Value for flavor."
},
"prettyName": {
"type": "string"
},
"cpu": {
"type": "string"
},
"ram": {
"type": "string"
},
"ephemeralStorage": {
"type": "string"
},
"accelerator": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"model": {
"type": "string"
},
"manufacturer": {
"type": "string"
},
"quantity": {
"type": "string"
},
"vram": {
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"unitCostUsd": {
"type": "number"
},
"unitLabel": {
"type": "string"
}
},
"required": [
"id",
"accelerator"
]
}
},
"returnedCount": {
"type": "integer"
}
},
"required": [
"scope",
"items",
"returnedCount"
]
} | GET /api/spaces/hardwareGET /api/jobs/hardware (both documented, same shape) |
hf_buckets_listanonymousread-only replaces hf_fs | async def hf_buckets_list(*, owner: str, query: str | None = None, limit: int = 100) -> dict[str, Any]:
"""List storage buckets (object storage, mutable file stores) owned by a user or organization,
optionally matching a bucket name. Returns IDs and hf:// URIs, with stored bytes and file counts
when supplied. Results may be truncated locally without paging; narrow the name filter.
Args:
owner: User or org owning the buckets: name or profile uri.
query: Case-insensitive substring of the bucket name.
limit: Maximum buckets returned (max 500).
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, private: bool, size: float, numFiles: float, createdAt: str, lastModified: str}],
returnedCount: int,
nextCursor: None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, publicOnly: bool, estimatedTotal: float},
}
"""
.../**
* List storage buckets (object storage, mutable file stores) owned by a user or organization,
* optionally matching a bucket name. Returns IDs and hf:// URIs, with stored bytes and file counts
* when supplied. Results may be truncated locally without paging; narrow the name filter.
*/
declare function hf_buckets_list(args: {
// User or org owning the buckets: name or profile uri.
owner: string;
// Case-insensitive substring of the bucket name.
query?: string;
// Maximum buckets returned (max 500). @default 100
limit?: number;
}): Promise<{
items: Array<{ kind: string; id: string; uri: string; url: string; private?: boolean; size?: number; numFiles?: number; createdAt?: string; lastModified?: string; }>;
returnedCount: number;
nextCursor: null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; publicOnly?: boolean; estimatedTotal?: number; };
}>;input schema{
"type": "object",
"properties": {
"owner": {
"description": "User or org owning the buckets: name or profile uri.",
"type": "string"
},
"query": {
"description": "Case-insensitive substring of the bucket name.",
"type": "string"
},
"limit": {
"default": 100,
"description": "Maximum buckets returned (max 500).",
"type": "integer"
}
},
"required": [
"owner"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"private": {
"type": "boolean"
},
"size": {
"description": "Bytes.",
"type": "number"
},
"numFiles": {
"type": "number"
},
"createdAt": {
"type": "string"
},
"lastModified": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": "null"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"publicOnly": {
"type": "boolean"
},
"estimatedTotal": {
"description": "Estimate, not exact.",
"type": "number"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/buckets/{namespace} |
Repository & bucket inspection (6)
| Tool | Definition | Endpoints |
|---|---|---|
hf_repo_infoanonymousread-only replaces hf_fs, hub_repo_details | async def hf_repo_info(
*,
repos: list[str],
kind: Literal["model", "dataset", "space", "bucket"] | None = None,
revision: str | None = None,
fields: list[Literal["revision", "sha", "author", "private", "gated", "disabled", "createdAt", "lastModified", "downloads", "downloadsAllTime", "likes", "tags", "pipelineTag", "libraryName", "license", "languages", "baseModels", "baseModelRelation", "datasets", "models", "spaces", "numSpaces", "numChildModels", "safetensors", "gguf", "chatTemplate", "chatTemplateTruncated", "config", "transformersInfo", "inferenceProviders", "usedStorage", "description", "citation", "paperswithcodeId", "prettyName", "taskCategories", "sizeCategories", "sdk", "title", "emoji", "shortDescription", "subdomain", "runtime", "size", "numFiles"]] | None = None,
) -> dict[str, Any]:
"""Inspect Hugging Face repository metadata (details, statistics, access status) by ID, URI or URL.
Get available details for models, datasets, Spaces or storage buckets: model card metadata
including license, base models and training datasets; gated/private status, downloads, likes,
parameter counts, GGUF summary, storage size and, on request, chat template. Space details
include SDK, runtime stage and hardware. Select the metadata to return for up to 50 repositories
per call.
Args:
repos: Up to 50 repositories: returned uris (hf://...), owner/name IDs or URLs.
kind: Kind for bare IDs. Omit to auto-detect model, then dataset, then Space.
revision: Branch, tag or commit for every repo (not buckets).
fields: Fields beyond kind/id/uri/url. Default: all but chatTemplate, spaces, numSpaces.
Returns: {
items: list[{kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str, redirectedFrom: str, revision: str, sha: str, author: str, private: bool, gated: bool | str, disabled: bool, createdAt: str, lastModified: str, downloads: int, downloadsAllTime: int, likes: int, tags: list[str], pipelineTag: str, libraryName: str, license: str, languages: list[str], baseModels: list[dict[str, Any]], baseModelRelation: str, datasets: list[dict[str, Any]], models: list[dict[str, Any]], spaces: list[dict[str, Any]], numSpaces: int, numChildModels: int, safetensors: dict[str, Any], gguf: dict[str, Any], chatTemplate: str, chatTemplateTruncated: bool, config: dict[str, Any], transformersInfo: dict[str, Any], inferenceProviders: list[dict[str, Any]], usedStorage: int, description: str, citation: str, paperswithcodeId: str, prettyName: str, taskCategories: list[str], sizeCategories: list[str], sdk: str, title: str, emoji: str, shortDescription: str, subdomain: str, runtime: dict[str, Any], size: int, numFiles: int} | {ref: str, error: dict[str, Any]}], # One per requested repo, in order: a record or {ref, error}.
returnedCount: int,
errorCount: int,
}
"""
.../**
* Inspect Hugging Face repository metadata (details, statistics, access status) by ID, URI or URL.
* Get available details for models, datasets, Spaces or storage buckets: model card metadata
* including license, base models and training datasets; gated/private status, downloads, likes,
* parameter counts, GGUF summary, storage size and, on request, chat template. Space details
* include SDK, runtime stage and hardware. Select the metadata to return for up to 50 repositories
* per call.
*/
declare function hf_repo_info(args: {
// Up to 50 repositories: returned uris (hf://...), owner/name IDs or URLs.
repos: string[];
// Kind for bare IDs. Omit to auto-detect model, then dataset, then Space.
kind?: "model" | "dataset" | "space" | "bucket";
// Branch, tag or commit for every repo (not buckets).
revision?: string;
// Fields beyond kind/id/uri/url. Default: all but chatTemplate, spaces, numSpaces.
fields?: Array<"revision" | "sha" | "author" | "private" | "gated" | "disabled" | "createdAt" | "lastModified" | "downloads" | "downloadsAllTime" | "likes" | "tags" | "pipelineTag" | "libraryName" | "license" | "languages" | "baseModels" | "baseModelRelation" | "datasets" | "models" | "spaces" | "numSpaces" | "numChildModels" | "safetensors" | "gguf" | "chatTemplate" | "chatTemplateTruncated" | "config" | "transformersInfo" | "inferenceProviders" | "usedStorage" | "description" | "citation" | "paperswithcodeId" | "prettyName" | "taskCategories" | "sizeCategories" | "sdk" | "title" | "emoji" | "shortDescription" | "subdomain" | "runtime" | "size" | "numFiles">;
}): Promise<{
// One per requested repo, in order: a record or {ref, error}.
items: Array<{ kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; redirectedFrom?: string; revision?: string; sha?: string; author?: string; private?: boolean; gated?: boolean | string; disabled?: boolean; createdAt?: string; lastModified?: string; downloads?: number; downloadsAllTime?: number; likes?: number; tags?: string[]; pipelineTag?: string; libraryName?: string; license?: string; languages?: string[]; baseModels?: Record<string, unknown>[]; baseModelRelation?: string; datasets?: Record<string, unknown>[]; models?: Record<string, unknown>[]; spaces?: Record<string, unknown>[]; numSpaces?: number; numChildModels?: number; safetensors?: Record<string, unknown>; gguf?: Record<string, unknown>; chatTemplate?: string; chatTemplateTruncated?: boolean; config?: Record<string, unknown>; transformersInfo?: Record<string, unknown>; inferenceProviders?: Record<string, unknown>[]; usedStorage?: number; description?: string; citation?: string; paperswithcodeId?: string; prettyName?: string; taskCategories?: string[]; sizeCategories?: string[]; sdk?: string; title?: string; emoji?: string; shortDescription?: string; subdomain?: string; runtime?: Record<string, unknown>; size?: number; numFiles?: number; } | { ref: string; error: Record<string, unknown>; }>;
returnedCount: number;
errorCount: number;
}>;input schema{
"type": "object",
"properties": {
"repos": {
"type": "array",
"items": {
"type": "string",
"description": "Repository or file: hf:// uri (preferred), owner/name or URL."
},
"description": "Up to 50 repositories: returned uris (hf://...), owner/name IDs or URLs."
},
"kind": {
"description": "Kind for bare IDs. Omit to auto-detect model, then dataset, then Space.",
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"revision": {
"description": "Branch, tag or commit for every repo (not buckets).",
"type": "string"
},
"fields": {
"description": "Fields beyond kind/id/uri/url. Default: all but chatTemplate, spaces, numSpaces.",
"type": "array",
"items": {
"type": "string",
"enum": [
"revision",
"sha",
"author",
"private",
"gated",
"disabled",
"createdAt",
"lastModified",
"downloads",
"downloadsAllTime",
"likes",
"tags",
"pipelineTag",
"libraryName",
"license",
"languages",
"baseModels",
"baseModelRelation",
"datasets",
"models",
"spaces",
"numSpaces",
"numChildModels",
"safetensors",
"gguf",
"chatTemplate",
"chatTemplateTruncated",
"config",
"transformersInfo",
"inferenceProviders",
"usedStorage",
"description",
"citation",
"paperswithcodeId",
"prettyName",
"taskCategories",
"sizeCategories",
"sdk",
"title",
"emoji",
"shortDescription",
"subdomain",
"runtime",
"size",
"numFiles"
]
}
}
},
"required": [
"repos"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"redirectedFrom": {
"description": "Previous repository ID when a rename redirect was followed.",
"type": "string"
},
"revision": {
"type": "string"
},
"sha": {
"type": "string"
},
"author": {
"type": "string"
},
"private": {
"type": "boolean"
},
"gated": {
"description": "false, auto or manual.",
"type": [
"boolean",
"string"
]
},
"disabled": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"downloads": {
"description": "Last 30 days.",
"type": "integer"
},
"downloadsAllTime": {
"type": "integer"
},
"likes": {
"type": "integer"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"pipelineTag": {
"type": "string"
},
"libraryName": {
"type": "string"
},
"license": {
"type": "string"
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
},
"baseModels": {
"description": "First 20.",
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"baseModelRelation": {
"type": "string"
},
"datasets": {
"description": "Models: declared in the card. Spaces: linked. First 20.",
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"models": {
"description": "Spaces: linked models, first 20.",
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"spaces": {
"description": "Models: Spaces using it, first 20. Only when requested in fields.",
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"numSpaces": {
"description": "Only when requested in fields.",
"type": "integer"
},
"numChildModels": {
"description": "Fine-tunes, adapters, merges and quantizations.",
"type": "integer"
},
"safetensors": {
"description": "Parameter counts (not bytes).",
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
}
}
},
"gguf": {
"type": "object",
"properties": {
"total": {
"description": "Parameter count.",
"type": "integer"
},
"architecture": {
"type": "string"
},
"contextLength": {
"type": "integer"
},
"bosToken": {
"type": "string"
},
"eosToken": {
"type": "string"
}
}
},
"chatTemplate": {
"description": "Jinja, from GGUF or tokenizer_config.json. Only when requested in fields.",
"type": "string"
},
"chatTemplateTruncated": {
"type": "boolean"
},
"config": {
"type": "object",
"properties": {
"model_type": {
"type": "string"
},
"architectures": {
"type": "array",
"items": {
"type": "string"
}
},
"vocab_size": {
"type": "integer"
}
}
},
"transformersInfo": {
"type": "object",
"properties": {
"autoModel": {
"type": "string"
},
"pipelineTag": {
"type": "string"
},
"processor": {
"type": "string"
}
}
},
"inferenceProviders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"providerId": {
"type": "string"
},
"status": {
"type": "string"
},
"task": {
"type": "string"
}
},
"required": [
"provider"
]
}
},
"usedStorage": {
"description": "Bytes, all revisions.",
"type": "integer"
},
"description": {
"type": "string"
},
"citation": {
"type": "string"
},
"paperswithcodeId": {
"type": "string"
},
"prettyName": {
"type": "string"
},
"taskCategories": {
"type": "array",
"items": {
"type": "string"
}
},
"sizeCategories": {
"type": "array",
"items": {
"type": "string"
}
},
"sdk": {
"type": "string"
},
"title": {
"type": "string"
},
"emoji": {
"type": "string"
},
"shortDescription": {
"type": "string"
},
"subdomain": {
"type": "string"
},
"runtime": {
"type": "object"
},
"size": {
"description": "Buckets: total bytes.",
"type": "integer"
},
"numFiles": {
"description": "Buckets only.",
"type": "integer"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
{
"type": "object",
"properties": {
"ref": {
"type": "string"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"not_found",
"auth_required",
"gated",
"invalid",
"upstream_error"
]
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"ref",
"error"
]
}
]
},
"description": "One per requested repo, in order: a record or {ref, error}."
},
"returnedCount": {
"type": "integer"
},
"errorCount": {
"type": "integer"
}
},
"required": [
"items",
"returnedCount",
"errorCount"
]
} | GET /api/{models,datasets,spaces}/{id}[/revision/{rev}]?expand=...GET /api/buckets/{id} |
hf_repo_list_filesanonymousread-only replaces hf_fs | async def hf_repo_list_files(
*,
repo: str,
path: str = "",
revision: str | None = None,
recursive: bool = False,
glob: str | None = None,
pathContains: str | None = None,
kind: Literal["file", "dir"] | None = None,
expand: bool = False,
limit: int = 200,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""List Hugging Face repository files and folders (file tree, weights, checkpoints) by folder or
revision. Browse models, datasets, Spaces or storage buckets, optionally recursively, and filter
by glob such as *.gguf or *.safetensors, path substring or entry type. Returns paths, file
sizes, LFS/Xet flags and file URIs. Path-index searches return only the first 100 matches. See
hf_repo_read_text.
Args:
repo: Repository or bucket (hf:// uri preferred; a uri with a path lists that folder).
path: Folder inside the repository, relative to repo ("" = root).
revision: Branch, tag or commit id (hf_repo_history items[].id); not buckets.
recursive: Include all nested files and folders (implied by glob).
glob: Glob, e.g. "*.gguf" (any depth) or "onnx/**/*.onnx" (from path).
pathContains: Path substring, searched repository-wide (first 100 matches).
kind: Only files or only folders (items[].kind).
expand: Add last commit info per entry (repositories only; slower).
limit: Maximum entries to return (default 200, max 1000).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
repo: {kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str},
revision: str,
path: str,
items: list[{kind: Literal["file", "dir"], id: str, uri: str, url: str, path: str, size: int, lfs: bool, xet: bool, oid: str, lastCommit: dict[str, Any], uploadedAt: str, lastModified: str, contentType: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, total: int},
}
"""
.../**
* List Hugging Face repository files and folders (file tree, weights, checkpoints) by folder or
* revision. Browse models, datasets, Spaces or storage buckets, optionally recursively, and filter
* by glob such as *.gguf or *.safetensors, path substring or entry type. Returns paths, file
* sizes, LFS/Xet flags and file URIs. Path-index searches return only the first 100 matches. See
* hf_repo_read_text.
*/
declare function hf_repo_list_files(args: {
// Repository or bucket (hf:// uri preferred; a uri with a path lists that folder).
repo: string;
// Folder inside the repository, relative to repo ("" = root). @default ""
path?: string;
// Branch, tag or commit id (hf_repo_history items[].id); not buckets.
revision?: string;
// Include all nested files and folders (implied by glob). @default false
recursive?: boolean;
// Glob, e.g. "*.gguf" (any depth) or "onnx/**/*.onnx" (from path).
glob?: string;
// Path substring, searched repository-wide (first 100 matches).
pathContains?: string;
// Only files or only folders (items[].kind).
kind?: "file" | "dir";
// Add last commit info per entry (repositories only; slower). @default false
expand?: boolean;
// Maximum entries to return (default 200, max 1000). @default 200
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
repo: { kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; };
revision?: string;
path: string;
items: Array<{ kind: "file" | "dir"; id: string; uri: string; url: string; path: string; size?: number; lfs?: boolean; xet?: boolean; oid?: string; lastCommit?: Record<string, unknown>; uploadedAt?: string; lastModified?: string; contentType?: string; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; total?: number; };
}>;input schema{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository or bucket (hf:// uri preferred; a uri with a path lists that folder)."
},
"path": {
"default": "",
"description": "Folder inside the repository, relative to repo (\"\" = root).",
"type": "string"
},
"revision": {
"description": "Branch, tag or commit id (hf_repo_history items[].id); not buckets.",
"type": "string"
},
"recursive": {
"default": false,
"description": "Include all nested files and folders (implied by glob).",
"type": "boolean"
},
"glob": {
"description": "Glob, e.g. \"*.gguf\" (any depth) or \"onnx/**/*.onnx\" (from path).",
"type": "string"
},
"pathContains": {
"description": "Path substring, searched repository-wide (first 100 matches).",
"type": "string"
},
"kind": {
"description": "Only files or only folders (items[].kind).",
"type": "string",
"enum": [
"file",
"dir"
]
},
"expand": {
"default": false,
"description": "Add last commit info per entry (repositories only; slower).",
"type": "boolean"
},
"limit": {
"default": 200,
"description": "Maximum entries to return (default 200, max 1000).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"required": [
"repo"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"revision": {
"type": "string"
},
"path": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"file",
"dir"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"description": "Bytes; folders only with includeFolderSize.",
"type": "integer"
},
"lfs": {
"type": "boolean"
},
"xet": {
"type": "boolean"
},
"oid": {
"type": "string"
},
"lastCommit": {
"description": "Only with expand.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string"
}
},
"required": [
"id"
]
},
"uploadedAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"contentType": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url",
"path"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"total": {
"description": "pathContains: matches upstream, files and folders; only the first 100 are returned.",
"type": "integer"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"repo",
"path",
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/{t}/{id}/tree/{rev}/{path}GET /api/buckets/{id}/tree/{path}GET /api/{t}/{id}/paths-search/{rev} |
hf_repo_paths_infoanonymousread-only replaces hf_fs | async def hf_repo_paths_info(
*,
repo: str,
paths: list[str] = [],
revision: str | None = None,
expand: bool = False,
includeFolderSize: bool = False,
) -> dict[str, Any]:
"""Check whether known file and folder paths exist in a repository, or whether known file paths
exist in a bucket, like stat (buckets check file paths only; list bucket folders or prefixes via
hf_repo_list_files). Returns entry type, file size, LFS/Xet flags and missing or invisible
paths. Repository options add last-commit details and recursive folder sizes
(includeFolderSize)—use this to size dataset folders and balance shards before listing large
trees or mounting volumes. Accepts up to 2,000 supplied paths (50 folder sizes) per call. See
hf_repo_list_files.
Args:
repo: Repository or bucket. A path in the uri is checked too.
paths: Paths from the repository root (max 2000), e.g. ["config.json", "onnx"].
revision: Branch, tag or commit id (hf_repo_history items[].id); not buckets.
expand: Add last commit info (repositories only).
includeFolderSize: Compute recursive byte totals for up to 50 folders (repositories only).
Returns: {
repo: {kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str},
revision: str,
items: list[{kind: Literal["file", "dir"], id: str, uri: str, url: str, path: str, size: int, lfs: bool, xet: bool, oid: str, lastCommit: dict[str, Any], uploadedAt: str, lastModified: str, contentType: str}], # Existing paths, in request order.
missing: list[str],
returnedCount: int,
warnings: list[str],
}
"""
.../**
* Check whether known file and folder paths exist in a repository, or whether known file paths
* exist in a bucket, like stat (buckets check file paths only; list bucket folders or prefixes via
* hf_repo_list_files). Returns entry type, file size, LFS/Xet flags and missing or invisible
* paths. Repository options add last-commit details and recursive folder sizes
* (includeFolderSize)—use this to size dataset folders and balance shards before listing large
* trees or mounting volumes. Accepts up to 2,000 supplied paths (50 folder sizes) per call. See
* hf_repo_list_files.
*/
declare function hf_repo_paths_info(args: {
// Repository or bucket. A path in the uri is checked too.
repo: string;
// Paths from the repository root (max 2000), e.g. ["config.json", "onnx"]. @default []
paths?: string[];
// Branch, tag or commit id (hf_repo_history items[].id); not buckets.
revision?: string;
// Add last commit info (repositories only). @default false
expand?: boolean;
// Compute recursive byte totals for up to 50 folders (repositories only). @default false
includeFolderSize?: boolean;
}): Promise<{
repo: { kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; };
revision?: string;
// Existing paths, in request order.
items: Array<{ kind: "file" | "dir"; id: string; uri: string; url: string; path: string; size?: number; lfs?: boolean; xet?: boolean; oid?: string; lastCommit?: Record<string, unknown>; uploadedAt?: string; lastModified?: string; contentType?: string; }>;
missing: string[];
returnedCount: number;
warnings?: string[];
}>;input schema{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository or bucket. A path in the uri is checked too."
},
"paths": {
"default": [],
"description": "Paths from the repository root (max 2000), e.g. [\"config.json\", \"onnx\"].",
"type": "array",
"items": {
"type": "string"
}
},
"revision": {
"description": "Branch, tag or commit id (hf_repo_history items[].id); not buckets.",
"type": "string"
},
"expand": {
"default": false,
"description": "Add last commit info (repositories only).",
"type": "boolean"
},
"includeFolderSize": {
"default": false,
"description": "Compute recursive byte totals for up to 50 folders (repositories only).",
"type": "boolean"
}
},
"required": [
"repo"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"revision": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"file",
"dir"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"description": "Bytes; folders only with includeFolderSize.",
"type": "integer"
},
"lfs": {
"type": "boolean"
},
"xet": {
"type": "boolean"
},
"oid": {
"type": "string"
},
"lastCommit": {
"description": "Only with expand.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string"
}
},
"required": [
"id"
]
},
"uploadedAt": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"contentType": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url",
"path"
]
},
"description": "Existing paths, in request order."
},
"missing": {
"type": "array",
"items": {
"type": "string"
}
},
"returnedCount": {
"type": "integer"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"repo",
"items",
"missing",
"returnedCount"
]
} | POST /api/{t}/{id}/paths-info/{rev}POST /api/buckets/{id}/paths-infoGET /api/{t}/{id}/treesize/{rev}/{path} |
hf_repo_read_textanonymousread-only replaces hf_fs | async def hf_repo_read_text(*, uri: str, offset: int | None = 0, maxBytes: int = 20000) -> dict[str, Any]:
"""Read Hugging Face repository text files (README, model card, dataset card) by file URI or URL.
Open LICENSE, config.json, tokenizer settings, chat templates or source code from a model,
dataset, Space or storage bucket. Returns text content and byte offsets, with nextOffset for
continuation through a bounded byte window. See hf_repo_list_files.
Args:
uri: File uri (items[].uri of hf_repo_list_files) or a huggingface.co blob URL.
offset: Byte offset to start from (use nextOffset to continue).
maxBytes: Maximum bytes to read (default 20000, max 80000).
Returns: {
kind: Literal["file"],
id: str,
uri: str,
url: str,
path: str,
content: str,
offset: int, # Adjusted to a UTF-8 character boundary.
bytes: int,
size: int, # Whole file, bytes.
truncated: bool, # More content follows (nextOffset).
nextOffset: int | None,
}
"""
.../**
* Read Hugging Face repository text files (README, model card, dataset card) by file URI or URL.
* Open LICENSE, config.json, tokenizer settings, chat templates or source code from a model,
* dataset, Space or storage bucket. Returns text content and byte offsets, with nextOffset for
* continuation through a bounded byte window. See hf_repo_list_files.
*/
declare function hf_repo_read_text(args: {
// File uri (items[].uri of hf_repo_list_files) or a huggingface.co blob URL.
uri: string;
// Byte offset to start from (use nextOffset to continue). @default 0
offset?: number | null;
// Maximum bytes to read (default 20000, max 80000). @default 20000
maxBytes?: number;
}): Promise<{
kind: "file";
id: string;
uri: string;
url: string;
path: string;
content: string;
// Adjusted to a UTF-8 character boundary.
offset: number;
bytes: number;
// Whole file, bytes.
size?: number;
// More content follows (nextOffset).
truncated: boolean;
nextOffset: number | null;
}>;input schema{
"type": "object",
"properties": {
"uri": {
"type": "string",
"description": "File uri (items[].uri of hf_repo_list_files) or a huggingface.co blob URL."
},
"offset": {
"default": 0,
"description": "Byte offset to start from (use nextOffset to continue).",
"type": [
"integer",
"null"
]
},
"maxBytes": {
"default": 20000,
"description": "Maximum bytes to read (default 20000, max 80000).",
"type": "integer"
}
},
"required": [
"uri"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "file"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"offset": {
"type": "integer",
"description": "Adjusted to a UTF-8 character boundary."
},
"bytes": {
"type": "integer"
},
"size": {
"description": "Whole file, bytes.",
"type": "integer"
},
"truncated": {
"type": "boolean",
"description": "More content follows (nextOffset)."
},
"nextOffset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"id",
"uri",
"url",
"path",
"content",
"offset",
"bytes",
"truncated",
"nextOffset"
]
} | GET /{t}/{id}/resolve/{rev}/{path} (Range)GET /buckets/{id}/resolve/{path} |
hf_repo_read_imageanonymousread-only replaces hf_fs | async def hf_repo_read_image(*, uri: str, maxBytes: int = 8388608) -> dict[str, Any]:
"""Show a repository or bucket image (PNG, JPEG, WebP) by file URI: charts, diagrams or
screenshots. Returns image content with file metadata including MIME type and byte size; images
exceeding the chosen size cap, at most 8 MiB, are rejected.
Args:
uri: Image file uri ending in .jpg, .jpeg, .png or .webp.
maxBytes: Reject images larger than this many bytes (max 8 MiB).
Returns: {
kind: Literal["file"],
id: str,
uri: str,
url: str,
path: str,
mimeType: Literal["image/jpeg", "image/png", "image/webp"],
bytes: int,
}
"""
.../**
* Show a repository or bucket image (PNG, JPEG, WebP) by file URI: charts, diagrams or
* screenshots. Returns image content with file metadata including MIME type and byte size; images
* exceeding the chosen size cap, at most 8 MiB, are rejected.
*/
declare function hf_repo_read_image(args: {
// Image file uri ending in .jpg, .jpeg, .png or .webp.
uri: string;
// Reject images larger than this many bytes (max 8 MiB). @default 8388608
maxBytes?: number;
}): Promise<{
kind: "file";
id: string;
uri: string;
url: string;
path: string;
mimeType: "image/jpeg" | "image/png" | "image/webp";
bytes: number;
}>;input schema{
"type": "object",
"properties": {
"uri": {
"type": "string",
"description": "Image file uri ending in .jpg, .jpeg, .png or .webp."
},
"maxBytes": {
"default": 8388608,
"description": "Reject images larger than this many bytes (max 8 MiB).",
"type": "integer"
}
},
"required": [
"uri"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "file"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"path": {
"type": "string"
},
"mimeType": {
"type": "string",
"enum": [
"image/jpeg",
"image/png",
"image/webp"
]
},
"bytes": {
"type": "integer"
}
},
"required": [
"kind",
"id",
"uri",
"url",
"path",
"mimeType",
"bytes"
]
} | GET /{t}/{id}/resolve/{rev}/{path} |
hf_repo_historyanonymousread-only new | async def hf_repo_history(
*,
repo: str,
mode: Literal["commits", "refs"] = "commits",
revision: str | None = None,
includePrs: bool = False,
limit: int = 50,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Show repository history (commits, branches, tags) for a model, dataset or Space. Choose a
revision's commits with authors, dates and messages, or list branches, tags, converted refs and
optional pull-request refs. Results are paged for commits or capped at 500 refs.
Args:
repo: Repository: returned uri (a file uri works), owner/name or URL; no buckets.
mode: commits: history; refs: branches/tags/PRs.
revision: Branch, tag or commit to list history from (default: main).
includePrs: refs mode: include pull-request refs.
limit: Commits per page (default 50, max 200).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
repo: {kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str},
mode: Literal["commits", "refs"],
items: list[{kind: Literal["commit", "branch", "tag", "convert", "pull_request"], id: str, uri: str, url: str, title: str, message: str, authors: list[str], createdAt: str, ref: str, targetCommit: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, total: int},
}
"""
.../**
* Show repository history (commits, branches, tags) for a model, dataset or Space. Choose a
* revision's commits with authors, dates and messages, or list branches, tags, converted refs and
* optional pull-request refs. Results are paged for commits or capped at 500 refs.
*/
declare function hf_repo_history(args: {
// Repository: returned uri (a file uri works), owner/name or URL; no buckets.
repo: string;
// commits: history; refs: branches/tags/PRs. @default "commits"
mode?: "commits" | "refs";
// Branch, tag or commit to list history from (default: main).
revision?: string;
// refs mode: include pull-request refs. @default false
includePrs?: boolean;
// Commits per page (default 50, max 200). @default 50
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
repo: { kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; };
mode: "commits" | "refs";
items: Array<{ kind: "commit" | "branch" | "tag" | "convert" | "pull_request"; id: string; uri: string; url: string; title?: string; message?: string; authors?: string[]; createdAt?: string; ref?: string; targetCommit?: string; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; total?: number; };
}>;input schema{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Repository: returned uri (a file uri works), owner/name or URL; no buckets."
},
"mode": {
"default": "commits",
"description": "commits: history; refs: branches/tags/PRs.",
"type": "string",
"enum": [
"commits",
"refs"
]
},
"revision": {
"description": "Branch, tag or commit to list history from (default: main).",
"type": "string"
},
"includePrs": {
"default": false,
"description": "refs mode: include pull-request refs.",
"type": "boolean"
},
"limit": {
"default": 50,
"description": "Commits per page (default 50, max 200).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"required": [
"repo"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"mode": {
"type": "string",
"enum": [
"commits",
"refs"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"commit",
"branch",
"tag",
"convert",
"pull_request"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"message": {
"type": "string"
},
"authors": {
"type": "array",
"items": {
"type": "string"
}
},
"createdAt": {
"type": "string"
},
"ref": {
"description": "Full git ref, e.g. refs/pr/3; usable as revision.",
"type": "string"
},
"targetCommit": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"total": {
"description": "Commits on this revision.",
"type": "integer"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"repo",
"mode",
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/{t}/{id}/refsGET /api/{t}/{id}/commits/{rev} (page p + Link + X-Total-Count) |
Dataset contents (Dataset Viewer) (2)
| Tool | Definition | Endpoints |
|---|---|---|
hf_dataset_structureanonymousread-only replaces hub_repo_details | async def hf_dataset_structure(
*,
dataset: str,
config: str | None = None,
split: str | None = None,
include: list[Literal["splits", "schema", "sizes", "parquet", "statistics"]] | None = None,
splitsOffset: int = 0,
schemaOffset: int = 0,
) -> dict[str, Any]:
"""Inspect Hugging Face dataset structure (splits, subsets, columns) by dataset ID. Use the Dataset
Viewer for one dataset: schema, feature types, split counts, sizes and parquet URLs. For row
counts across search hits use hf_datasets_search with sort="numRows" instead of probing each
hit; gated datasets may lack Viewer data. Select sections to return or narrow to a subset and
split; per-column statistics require both. Results may be partial. See hf_dataset_rows.
Args:
dataset: Dataset: hf://datasets/owner/name (preferred), "owner/name" or URL.
config: Limit to one config (subset): a splits[].config value.
split: Limit to one split (splits[].split); required for statistics.
include: Sections to return (default splits, schema, sizes, parquet).
splitsOffset: Start index into splits (pages of 200 when splitsTruncated).
schemaOffset: Start index into schema configs (pages of 20 when schemaTruncated).
Returns: {
dataset: {kind: Literal["dataset"], id: str, uri: str, url: str},
config: str,
split: str,
splits: list[{config: str, split: str, numRows: int, numColumns: int, parquetSize: int, memorySize: int, originalSize: int}],
splitsTruncated: bool, # Only the first 200 splits; numSplits is the total.
numSplits: int,
totals: {numRows: int, parquetSize: int, memorySize: int, originalSize: int}, # Whole dataset, or the config when set.
schema: list[{config: str, columns: list[dict[str, Any]], columnsTruncated: bool, numColumns: int}],
schemaTruncated: bool, # Only the first 20 configs; pass config for others.
numSchemaConfigs: int,
parquet: {files: list[dict[str, Any]], truncated: bool, numFiles: int},
statistics: {numExamples: int, columns: list[dict[str, Any]], columnsTruncated: bool, numColumns: int, partial: bool},
partial: bool, # The Dataset Viewer processed only part of the data.
pending: int, # Pending processing entries.
failed: int, # Failed processing entries.
unavailable: list[{section: Literal["splits", "schema", "sizes", "parquet", "statistics"], code: str, message: str}],
hints: list[str],
}
"""
.../**
* Inspect Hugging Face dataset structure (splits, subsets, columns) by dataset ID. Use the Dataset
* Viewer for one dataset: schema, feature types, split counts, sizes and parquet URLs. For row
* counts across search hits use hf_datasets_search with sort="numRows" instead of probing each
* hit; gated datasets may lack Viewer data. Select sections to return or narrow to a subset and
* split; per-column statistics require both. Results may be partial. See hf_dataset_rows.
*/
declare function hf_dataset_structure(args: {
// Dataset: hf://datasets/owner/name (preferred), "owner/name" or URL.
dataset: string;
// Limit to one config (subset): a splits[].config value.
config?: string;
// Limit to one split (splits[].split); required for statistics.
split?: string;
// Sections to return (default splits, schema, sizes, parquet).
include?: Array<"splits" | "schema" | "sizes" | "parquet" | "statistics">;
// Start index into splits (pages of 200 when splitsTruncated). @default 0
splitsOffset?: number;
// Start index into schema configs (pages of 20 when schemaTruncated). @default 0
schemaOffset?: number;
}): Promise<{
dataset: { kind: "dataset"; id: string; uri: string; url: string; };
config?: string;
split?: string;
splits?: Array<{ config: string; split: string; numRows?: number; numColumns?: number; parquetSize?: number; memorySize?: number; originalSize?: number; }>;
// Only the first 200 splits; numSplits is the total.
splitsTruncated?: boolean;
numSplits?: number;
// Whole dataset, or the config when set.
totals?: { numRows?: number; parquetSize?: number; memorySize?: number; originalSize?: number; };
schema?: Array<{ config: string; columns: Record<string, unknown>[]; columnsTruncated?: boolean; numColumns?: number; }>;
// Only the first 20 configs; pass config for others.
schemaTruncated?: boolean;
numSchemaConfigs?: number;
parquet?: { files: Record<string, unknown>[]; truncated: boolean; numFiles: number; };
statistics?: { numExamples?: number; columns: Record<string, unknown>[]; columnsTruncated?: boolean; numColumns?: number; partial?: boolean; };
// The Dataset Viewer processed only part of the data.
partial: boolean;
// Pending processing entries.
pending: number;
// Failed processing entries.
failed: number;
unavailable?: Array<{ section: "splits" | "schema" | "sizes" | "parquet" | "statistics"; code: string; message: string; }>;
hints?: string[];
}>;input schema{
"type": "object",
"properties": {
"dataset": {
"type": "string",
"description": "Dataset: hf://datasets/owner/name (preferred), \"owner/name\" or URL."
},
"config": {
"description": "Limit to one config (subset): a splits[].config value.",
"type": "string"
},
"split": {
"description": "Limit to one split (splits[].split); required for statistics.",
"type": "string"
},
"include": {
"description": "Sections to return (default splits, schema, sizes, parquet).",
"type": "array",
"items": {
"type": "string",
"enum": [
"splits",
"schema",
"sizes",
"parquet",
"statistics"
]
}
},
"splitsOffset": {
"default": 0,
"description": "Start index into splits (pages of 200 when splitsTruncated).",
"type": "integer"
},
"schemaOffset": {
"default": 0,
"description": "Start index into schema configs (pages of 20 when schemaTruncated).",
"type": "integer"
}
},
"required": [
"dataset"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"dataset": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "dataset"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"config": {
"type": "string"
},
"split": {
"type": "string"
},
"splits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"split": {
"type": "string"
},
"numRows": {
"type": "integer"
},
"numColumns": {
"type": "integer"
},
"parquetSize": {
"type": "integer"
},
"memorySize": {
"type": "integer"
},
"originalSize": {
"type": "integer"
}
},
"required": [
"config",
"split"
]
}
},
"splitsTruncated": {
"description": "Only the first 200 splits; numSplits is the total.",
"type": "boolean"
},
"numSplits": {
"type": "integer"
},
"totals": {
"description": "Whole dataset, or the config when set.",
"type": "object",
"properties": {
"numRows": {
"type": "integer"
},
"parquetSize": {
"type": "integer"
},
"memorySize": {
"type": "integer"
},
"originalSize": {
"type": "integer"
}
}
},
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name",
"type"
]
}
},
"columnsTruncated": {
"type": "boolean"
},
"numColumns": {
"description": "Total, when columnsTruncated.",
"type": "integer"
}
},
"required": [
"config",
"columns"
]
}
},
"schemaTruncated": {
"description": "Only the first 20 configs; pass config for others.",
"type": "boolean"
},
"numSchemaConfigs": {
"type": "integer"
},
"parquet": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"split": {
"type": "string"
},
"url": {
"type": "string"
},
"filename": {
"type": "string"
},
"size": {
"type": "integer"
}
},
"required": [
"config",
"split",
"url"
]
}
},
"truncated": {
"type": "boolean"
},
"numFiles": {
"type": "integer",
"description": "All matching files."
}
},
"required": [
"files",
"truncated",
"numFiles"
]
},
"statistics": {
"type": "object",
"properties": {
"numExamples": {
"type": "integer"
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"statistics": {
"type": "object"
}
},
"required": [
"name",
"type",
"statistics"
]
}
},
"columnsTruncated": {
"type": "boolean"
},
"numColumns": {
"description": "Total, when columnsTruncated.",
"type": "integer"
},
"partial": {
"type": "boolean"
}
},
"required": [
"columns"
]
},
"partial": {
"type": "boolean",
"description": "The Dataset Viewer processed only part of the data."
},
"pending": {
"type": "integer",
"description": "Pending processing entries."
},
"failed": {
"type": "integer",
"description": "Failed processing entries."
},
"unavailable": {
"type": "array",
"items": {
"type": "object",
"properties": {
"section": {
"type": "string",
"enum": [
"splits",
"schema",
"sizes",
"parquet",
"statistics"
]
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"section",
"code",
"message"
]
}
},
"hints": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"dataset",
"partial",
"pending",
"failed"
]
} | datasets-server /splits, /info, /size, /parquet, /statistics |
hf_dataset_rowsanonymousread-only replaces hub_repo_details | async def hf_dataset_rows(
*,
dataset: str,
config: str,
split: str,
offset: int | None = 0,
limit: int = 20,
where: str | None = None,
orderby: str | None = None,
search: str | None = None,
maxCellChars: int = 2000,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Read Hugging Face dataset rows (samples, previews, records) for a chosen subset and split. Use
the Dataset Viewer to filter and sort with SQL-like expressions, or choose a separate full-text
search in string columns. Returns row values and indices, column names and types, and indicators
of truncated cells. Pages contain up to 100 rows; continue with nextCursor, or start at a row
with offset. See hf_dataset_structure.
Args:
dataset: Dataset: hf://datasets/owner/name (preferred), "owner/name" or URL.
config: Config from hf_dataset_structure splits[].config, e.g. "default".
split: Split from hf_dataset_structure splits[].split, e.g. "train".
offset: First row index.
limit: Rows to return (max 100).
where: SQL filter, columns double-quoted: "label" = 1 AND "lang" = 'en'.
orderby: Sort, columns double-quoted: "score" DESC (Dataset Viewer /filter).
search: Full-text search in string columns; cannot be combined with where/orderby.
maxCellChars: Max chars per cell before truncation (default 2000, max 20000).
cursor: nextCursor from a previous call with the same arguments (overrides offset).
Returns: {
dataset: {kind: Literal["dataset"], id: str, uri: str, url: str},
config: str,
split: str,
mode: Literal["rows", "filter", "search"],
columns: list[{name: str, type: str}],
items: list[{rowIdx: int, row: dict[str, Any], truncatedCells: list[str], omittedColumns: int}],
returnedCount: int,
offset: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, total: int, partial: bool},
}
"""
.../**
* Read Hugging Face dataset rows (samples, previews, records) for a chosen subset and split. Use
* the Dataset Viewer to filter and sort with SQL-like expressions, or choose a separate full-text
* search in string columns. Returns row values and indices, column names and types, and indicators
* of truncated cells. Pages contain up to 100 rows; continue with nextCursor, or start at a row
* with offset. See hf_dataset_structure.
*/
declare function hf_dataset_rows(args: {
// Dataset: hf://datasets/owner/name (preferred), "owner/name" or URL.
dataset: string;
// Config from hf_dataset_structure splits[].config, e.g. "default".
config: string;
// Split from hf_dataset_structure splits[].split, e.g. "train".
split: string;
// First row index. @default 0
offset?: number | null;
// Rows to return (max 100). @default 20
limit?: number;
// SQL filter, columns double-quoted: "label" = 1 AND "lang" = 'en'.
where?: string;
// Sort, columns double-quoted: "score" DESC (Dataset Viewer /filter).
orderby?: string;
// Full-text search in string columns; cannot be combined with where/orderby.
search?: string;
// Max chars per cell before truncation (default 2000, max 20000). @default 2000
maxCellChars?: number;
// nextCursor from a previous call with the same arguments (overrides offset).
cursor?: string | null;
}): Promise<{
dataset: { kind: "dataset"; id: string; uri: string; url: string; };
config: string;
split: string;
mode: "rows" | "filter" | "search";
columns: Array<{ name: string; type: string; }>;
items: Array<{ rowIdx: number; row: Record<string, unknown>; truncatedCells?: string[]; omittedColumns?: number; }>;
returnedCount: number;
offset: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; total?: number; partial?: boolean; };
}>;input schema{
"type": "object",
"properties": {
"dataset": {
"type": "string",
"description": "Dataset: hf://datasets/owner/name (preferred), \"owner/name\" or URL."
},
"config": {
"type": "string",
"description": "Config from hf_dataset_structure splits[].config, e.g. \"default\"."
},
"split": {
"type": "string",
"description": "Split from hf_dataset_structure splits[].split, e.g. \"train\"."
},
"offset": {
"default": 0,
"description": "First row index.",
"type": [
"integer",
"null"
]
},
"limit": {
"default": 20,
"description": "Rows to return (max 100).",
"type": "integer"
},
"where": {
"description": "SQL filter, columns double-quoted: \"label\" = 1 AND \"lang\" = 'en'.",
"type": "string"
},
"orderby": {
"description": "Sort, columns double-quoted: \"score\" DESC (Dataset Viewer /filter).",
"type": "string"
},
"search": {
"description": "Full-text search in string columns; cannot be combined with where/orderby.",
"type": "string"
},
"maxCellChars": {
"default": 2000,
"description": "Max chars per cell before truncation (default 2000, max 20000).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments (overrides offset).",
"type": [
"string",
"null"
]
}
},
"required": [
"dataset",
"config",
"split"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"dataset": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "dataset"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"config": {
"type": "string"
},
"split": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"rows",
"filter",
"search"
]
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name",
"type"
]
}
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rowIdx": {
"type": "integer"
},
"row": {
"type": "object"
},
"truncatedCells": {
"type": "array",
"items": {
"type": "string"
}
},
"omittedColumns": {
"description": "Columns past the first 200, left out of row.",
"type": "integer"
}
},
"required": [
"rowIdx",
"row"
]
}
},
"returnedCount": {
"type": "integer"
},
"offset": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"total": {
"description": "Rows in the split, or matches for filter/search.",
"type": "integer"
},
"partial": {
"description": "Only part of a large split was searched.",
"type": "boolean"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"dataset",
"config",
"split",
"mode",
"columns",
"items",
"returnedCount",
"offset",
"nextCursor",
"completeness"
]
} | datasets-server /rows, /first-rows, /filter, /search |
Papers (4)
| Tool | Definition | Endpoints |
|---|---|---|
hf_papers_searchanonymousread-only replaces hf_fs | async def hf_papers_search(*, query: str, limit: int = 20) -> dict[str, Any]:
"""Search Hugging Face papers (arXiv preprints, research articles) by topic, method, title or
question. Returns paper IDs and links, with titles, authors, publication dates, upvotes, AI
summaries and abstract excerpts when available. Results are a bounded relevance-ranked set
without continuation. See hf_paper_get.
Args:
query: Topic, method name, title words or question.
limit: Maximum papers (max 120; no continuation).
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, title: str, aiSummary: str, abstract: str, authors: list[str], publishedAt: str, upvotes: float, arxivUrl: str, githubRepo: str, projectPage: str, submittedOnDailyAt: str, submittedBy: str, numComments: float}],
returnedCount: int,
nextCursor: None, # No paging: raise limit (max 120).
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
}
"""
.../**
* Search Hugging Face papers (arXiv preprints, research articles) by topic, method, title or
* question. Returns paper IDs and links, with titles, authors, publication dates, upvotes, AI
* summaries and abstract excerpts when available. Results are a bounded relevance-ranked set
* without continuation. See hf_paper_get.
*/
declare function hf_papers_search(args: {
// Topic, method name, title words or question.
query: string;
// Maximum papers (max 120; no continuation). @default 20
limit?: number;
}): Promise<{
items: Array<{ kind: string; id: string; uri: string; url: string; title?: string; aiSummary?: string; abstract?: string; authors?: string[]; publishedAt?: string; upvotes?: number; arxivUrl?: string; githubRepo?: string; projectPage?: string; submittedOnDailyAt?: string; submittedBy?: string; numComments?: number; }>;
returnedCount: number;
// No paging: raise limit (max 120).
nextCursor: null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
}>;input schema{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Topic, method name, title words or question."
},
"limit": {
"default": 20,
"description": "Maximum papers (max 120; no continuation).",
"type": "integer"
}
},
"required": [
"query"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string",
"description": "arXiv ID."
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"aiSummary": {
"type": "string"
},
"abstract": {
"description": "Clipped in lists; full in hf_paper_get.",
"type": "string"
},
"authors": {
"type": "array",
"items": {
"type": "string"
}
},
"publishedAt": {
"type": "string"
},
"upvotes": {
"type": "number"
},
"arxivUrl": {
"type": "string"
},
"githubRepo": {
"type": "string"
},
"projectPage": {
"type": "string"
},
"submittedOnDailyAt": {
"description": "Date the paper was featured in Daily Papers.",
"type": "string"
},
"submittedBy": {
"type": "string"
},
"numComments": {
"type": "number"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": "null",
"description": "No paging: raise limit (max 120)."
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/papers/search |
hf_daily_papersanonymousread-only replaces hf_fs | async def hf_daily_papers(
*,
date: str | None = None,
week: str | None = None,
month: str | None = None,
sort: Literal["publishedAt", "trending"] = "publishedAt",
submittedBy: str | None = None,
limit: int = 50,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Browse Hugging Face daily papers (AI research, arXiv preprints) by featured date or trending
rank. Select today's date, an ISO week or a month, optionally narrowing to one submitter.
Without a period, order by newest featured first or by the global trending rank; a period uses
the Hub's period ranking. Returns paper IDs and links, with titles, upvotes, comment counts,
summaries and submitters when available; supports pagination. See hf_papers_search.
Args:
date: Papers featured on this day (YYYY-MM-DD).
week: Papers featured in this ISO week, e.g. 2026-W46.
month: Papers featured in this month (YYYY-MM).
sort: publishedAt: newest, or the Hub period ranking; trending: global, no filters.
submittedBy: Only papers submitted by this user (name or profile uri).
limit: Papers per page (max 100).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, title: str, aiSummary: str, abstract: str, authors: list[str], publishedAt: str, upvotes: float, arxivUrl: str, githubRepo: str, projectPage: str, submittedOnDailyAt: str, submittedBy: str, numComments: float}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
}
"""
.../**
* Browse Hugging Face daily papers (AI research, arXiv preprints) by featured date or trending
* rank. Select today's date, an ISO week or a month, optionally narrowing to one submitter.
* Without a period, order by newest featured first or by the global trending rank; a period uses
* the Hub's period ranking. Returns paper IDs and links, with titles, upvotes, comment counts,
* summaries and submitters when available; supports pagination. See hf_papers_search.
*/
declare function hf_daily_papers(args: {
// Papers featured on this day (YYYY-MM-DD).
date?: string;
// Papers featured in this ISO week, e.g. 2026-W46.
week?: string;
// Papers featured in this month (YYYY-MM).
month?: string;
// publishedAt: newest, or the Hub period ranking; trending: global, no filters. @default "publishedAt"
sort?: "publishedAt" | "trending";
// Only papers submitted by this user (name or profile uri).
submittedBy?: string;
// Papers per page (max 100). @default 50
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: string; id: string; uri: string; url: string; title?: string; aiSummary?: string; abstract?: string; authors?: string[]; publishedAt?: string; upvotes?: number; arxivUrl?: string; githubRepo?: string; projectPage?: string; submittedOnDailyAt?: string; submittedBy?: string; numComments?: number; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
}>;input schema{
"type": "object",
"properties": {
"date": {
"description": "Papers featured on this day (YYYY-MM-DD).",
"type": "string"
},
"week": {
"description": "Papers featured in this ISO week, e.g. 2026-W46.",
"type": "string"
},
"month": {
"description": "Papers featured in this month (YYYY-MM).",
"type": "string"
},
"sort": {
"default": "publishedAt",
"description": "publishedAt: newest, or the Hub period ranking; trending: global, no filters.",
"type": "string",
"enum": [
"publishedAt",
"trending"
]
},
"submittedBy": {
"description": "Only papers submitted by this user (name or profile uri).",
"type": "string"
},
"limit": {
"default": 50,
"description": "Papers per page (max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string",
"description": "arXiv ID."
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"aiSummary": {
"type": "string"
},
"abstract": {
"description": "Clipped in lists; full in hf_paper_get.",
"type": "string"
},
"authors": {
"type": "array",
"items": {
"type": "string"
}
},
"publishedAt": {
"type": "string"
},
"upvotes": {
"type": "number"
},
"arxivUrl": {
"type": "string"
},
"githubRepo": {
"type": "string"
},
"projectPage": {
"type": "string"
},
"submittedOnDailyAt": {
"description": "Date the paper was featured in Daily Papers.",
"type": "string"
},
"submittedBy": {
"type": "string"
},
"numComments": {
"type": "number"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/daily_papers |
hf_paper_getanonymousread-only replaces hf_fs | async def hf_paper_get(*, papers: list[str]) -> dict[str, Any]:
"""Get Hugging Face paper details (arXiv metadata, authors, abstract) by ID or URL. Accepts batches
and hf://papers URIs. Available details include title, full abstract, AI summary, keywords,
publication date, upvotes, GitHub and project links, plus citing models, datasets and Spaces
with upstream totals; linked repositories are previews per kind. Returns per-paper errors
inline. See hf_paper_read.
Args:
papers: Up to 20 arXiv IDs (2405.02730), hf://papers uris or paper URLs.
Returns: {
items: list[{kind: str, id: str, uri: str, url: str, title: str, aiSummary: str, abstract: str, authors: list[str], publishedAt: str, upvotes: float, arxivUrl: str, githubRepo: str, projectPage: str, aiKeywords: list[str], githubStars: float, linked: dict[str, Any]} | {ref: str, error: dict[str, Any]}],
returnedCount: int,
}
"""
.../**
* Get Hugging Face paper details (arXiv metadata, authors, abstract) by ID or URL. Accepts batches
* and hf://papers URIs. Available details include title, full abstract, AI summary, keywords,
* publication date, upvotes, GitHub and project links, plus citing models, datasets and Spaces
* with upstream totals; linked repositories are previews per kind. Returns per-paper errors
* inline. See hf_paper_read.
*/
declare function hf_paper_get(args: {
// Up to 20 arXiv IDs (2405.02730), hf://papers uris or paper URLs.
papers: string[];
}): Promise<{
items: Array<{ kind: string; id: string; uri: string; url: string; title?: string; aiSummary?: string; abstract?: string; authors?: string[]; publishedAt?: string; upvotes?: number; arxivUrl?: string; githubRepo?: string; projectPage?: string; aiKeywords?: string[]; githubStars?: number; linked: Record<string, unknown>; } | { ref: string; error: Record<string, unknown>; }>;
returnedCount: number;
}>;input schema{
"type": "object",
"properties": {
"papers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Up to 20 arXiv IDs (2405.02730), hf://papers uris or paper URLs."
}
},
"required": [
"papers"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string",
"description": "arXiv ID."
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"aiSummary": {
"type": "string"
},
"abstract": {
"description": "Clipped in lists; full in hf_paper_get.",
"type": "string"
},
"authors": {
"type": "array",
"items": {
"type": "string"
}
},
"publishedAt": {
"type": "string"
},
"upvotes": {
"type": "number"
},
"arxivUrl": {
"type": "string"
},
"githubRepo": {
"type": "string"
},
"projectPage": {
"type": "string"
},
"aiKeywords": {
"type": "array",
"items": {
"type": "string"
}
},
"githubStars": {
"type": "number"
},
"linked": {
"type": "object",
"description": "Citing repositories: per kind, the first few items and the upstream total. Full lists: hf_models_search / hf_datasets_search / hf_spaces_list with papersAny=[ID]."
}
},
"required": [
"kind",
"id",
"uri",
"url",
"linked"
]
},
{
"type": "object",
"properties": {
"ref": {
"type": "string"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"not_found",
"auth_required",
"gated",
"invalid",
"upstream_error"
]
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"ref",
"error"
]
}
]
}
},
"returnedCount": {
"type": "integer"
}
},
"required": [
"items",
"returnedCount"
]
} | GET /api/papers/{id} |
hf_paper_readanonymousread-only replaces hf_fs | async def hf_paper_read(*, paper: str, offset: int | None = 0, maxBytes: int = 20000) -> dict[str, Any]:
"""Read a research paper's full text as Markdown by arXiv ID, hf://papers URI or paper URL. Returns
content and a source marker identifying full text or an abstract-only fallback. Reads byte
chunks; pass nextOffset as offset to continue until null. See hf_paper_get.
Args:
paper: arXiv ID, hf://papers URI, or paper/arXiv URL.
offset: Byte offset to start reading from (use nextOffset).
maxBytes: Maximum bytes of Markdown to return (default 20000, max 80000).
Returns: {
kind: str,
id: str, # arXiv ID.
uri: str,
url: str,
source: Literal["full_text", "abstract_only"],
content: str,
offset: int,
bytes: int,
size: int,
nextOffset: int | None,
}
"""
.../**
* Read a research paper's full text as Markdown by arXiv ID, hf://papers URI or paper URL. Returns
* content and a source marker identifying full text or an abstract-only fallback. Reads byte
* chunks; pass nextOffset as offset to continue until null. See hf_paper_get.
*/
declare function hf_paper_read(args: {
// arXiv ID, hf://papers URI, or paper/arXiv URL.
paper: string;
// Byte offset to start reading from (use nextOffset). @default 0
offset?: number | null;
// Maximum bytes of Markdown to return (default 20000, max 80000). @default 20000
maxBytes?: number;
}): Promise<{
kind: string;
// arXiv ID.
id: string;
uri: string;
url: string;
source: "full_text" | "abstract_only";
content: string;
offset: number;
bytes: number;
size: number;
nextOffset: number | null;
}>;input schema{
"type": "object",
"properties": {
"paper": {
"type": "string",
"description": "arXiv ID, hf://papers URI, or paper/arXiv URL."
},
"offset": {
"default": 0,
"description": "Byte offset to start reading from (use nextOffset).",
"type": [
"integer",
"null"
]
},
"maxBytes": {
"default": 20000,
"description": "Maximum bytes of Markdown to return (default 20000, max 80000).",
"type": "integer"
}
},
"required": [
"paper"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string",
"description": "arXiv ID."
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"source": {
"type": "string",
"enum": [
"full_text",
"abstract_only"
]
},
"content": {
"type": "string"
},
"offset": {
"type": "integer"
},
"bytes": {
"type": "integer"
},
"size": {
"type": "integer"
},
"nextOffset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"id",
"uri",
"url",
"source",
"content",
"offset",
"bytes",
"size",
"nextOffset"
]
} | GET /papers/{id}.md |
Collections (2)
| Tool | Definition | Endpoints |
|---|---|---|
hf_collections_searchanonymousread-only replaces hf_fs | async def hf_collections_search(
*,
query: str | None = None,
ownersAny: list[str] | None = None,
contains: str | None = None,
sort: Literal["trending", "upvotes", "lastModified"] = "trending",
limit: int = 10,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Search collections (curated lists, reading lists) by title or description words, owner, or a
contained model, dataset, Space or paper. Sort by trending, upvotes or last update. Returns a
page of collection URIs with item previews. See hf_collection_get.
Args:
query: Title/description substring (try shorter or singular keywords if empty).
ownersAny: Only collections of these users/orgs (names or profile uris; max 10).
contains: Only collections containing this repo or paper (hf:// uri or ID).
sort: Ordering.
limit: Collections per page (max 100).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
items: list[{kind: Literal["collection"], id: str, uri: str, url: str, title: str, description: str, owner: str, upvotes: float, private: bool, gated: bool, lastModified: str, itemsPreview: list[dict[str, Any]]}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
}
"""
.../**
* Search collections (curated lists, reading lists) by title or description words, owner, or a
* contained model, dataset, Space or paper. Sort by trending, upvotes or last update. Returns a
* page of collection URIs with item previews. See hf_collection_get.
*/
declare function hf_collections_search(args: {
// Title/description substring (try shorter or singular keywords if empty).
query?: string;
// Only collections of these users/orgs (names or profile uris; max 10).
ownersAny?: string[];
// Only collections containing this repo or paper (hf:// uri or ID).
contains?: string;
// Ordering. @default "trending"
sort?: "trending" | "upvotes" | "lastModified";
// Collections per page (max 100). @default 10
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "collection"; id: string; uri: string; url: string; title?: string; description?: string; owner?: string; upvotes?: number; private?: boolean; gated?: boolean; lastModified?: string; itemsPreview: Record<string, unknown>[]; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
}>;input schema{
"type": "object",
"properties": {
"query": {
"description": "Title/description substring (try shorter or singular keywords if empty).",
"type": "string"
},
"ownersAny": {
"description": "Only collections of these users/orgs (names or profile uris; max 10).",
"type": "array",
"items": {
"type": "string"
}
},
"contains": {
"description": "Only collections containing this repo or paper (hf:// uri or ID).",
"type": "string"
},
"sort": {
"default": "trending",
"description": "Ordering.",
"type": "string",
"enum": [
"trending",
"upvotes",
"lastModified"
]
},
"limit": {
"default": 10,
"description": "Collections per page (max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "collection"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"owner": {
"type": "string"
},
"upvotes": {
"type": "number"
},
"private": {
"type": "boolean"
},
"gated": {
"type": "boolean"
},
"lastModified": {
"type": "string"
},
"itemsPreview": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"description": "First few; full list via hf_collection_get."
}
},
"required": [
"kind",
"id",
"uri",
"url",
"itemsPreview"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/collections |
hf_collection_getanonymousread-only replaces hf_fs | async def hf_collection_get(*, collection: str, includeHistory: bool = False) -> dict[str, Any]:
"""Read one collection (curated list, reading list) by slug, URL or hf:// URI. Returns title,
description, owner and items with curator notes and item URIs, including models, datasets,
Spaces, papers, buckets and nested collections. Optionally include recent change history. See
hf_collections_search.
Args:
collection: hf://collections/OWNER/SLUG-ID, OWNER/SLUG-ID or collection URL.
includeHistory: Also return recent change history (up to 100 entries).
Returns: {
kind: Literal["collection"],
id: str,
uri: str,
url: str,
title: str,
description: str,
owner: str,
upvotes: float,
private: bool,
gated: bool,
lastModified: str,
items: list[{kind: str, id: str, uri: str, url: str, title: str, note: str, position: float, likes: float, upvotes: float, downloads: float, pipelineTag: str}],
returnedCount: int,
history: list[{action: str, item: dict[str, Any], createdAt: str, author: str}],
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, total: int, skippedItems: int, numHistory: int},
}
"""
.../**
* Read one collection (curated list, reading list) by slug, URL or hf:// URI. Returns title,
* description, owner and items with curator notes and item URIs, including models, datasets,
* Spaces, papers, buckets and nested collections. Optionally include recent change history. See
* hf_collections_search.
*/
declare function hf_collection_get(args: {
// hf://collections/OWNER/SLUG-ID, OWNER/SLUG-ID or collection URL.
collection: string;
// Also return recent change history (up to 100 entries). @default false
includeHistory?: boolean;
}): Promise<{
kind: "collection";
id: string;
uri: string;
url: string;
title?: string;
description?: string;
owner?: string;
upvotes?: number;
private?: boolean;
gated?: boolean;
lastModified?: string;
items: Array<{ kind: string; id: string; uri: string; url: string; title?: string; note?: string; position?: number; likes?: number; upvotes?: number; downloads?: number; pipelineTag?: string; }>;
returnedCount: number;
history?: Array<{ action: string; item?: Record<string, unknown>; createdAt?: string; author?: string; }>;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; total: number; skippedItems?: number; numHistory?: number; };
}>;input schema{
"type": "object",
"properties": {
"collection": {
"type": "string",
"description": "hf://collections/OWNER/SLUG-ID, OWNER/SLUG-ID or collection URL."
},
"includeHistory": {
"default": false,
"description": "Also return recent change history (up to 100 entries).",
"type": "boolean"
}
},
"required": [
"collection"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "collection"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"owner": {
"type": "string"
},
"upvotes": {
"type": "number"
},
"private": {
"type": "boolean"
},
"gated": {
"type": "boolean"
},
"lastModified": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"note": {
"type": "string"
},
"position": {
"type": "number"
},
"likes": {
"type": "number"
},
"upvotes": {
"type": "number"
},
"downloads": {
"type": "number"
},
"pipelineTag": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"action": {
"type": "string"
},
"item": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"createdAt": {
"type": "string"
},
"author": {
"type": "string"
}
},
"required": [
"action"
]
}
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"total": {
"type": "integer",
"description": "Upstream items, including skipped ones."
},
"skippedItems": {
"description": "Unsupported types (e.g. kernels) or malformed IDs, left out.",
"type": "integer"
},
"numHistory": {
"type": "integer"
}
},
"required": [
"hasMore",
"total"
]
}
},
"required": [
"kind",
"id",
"uri",
"url",
"items",
"returnedCount",
"completeness"
]
} | GET /api/collections/{namespace}/{slug}-{id}…/history |
Documentation (2)
| Tool | Definition | Endpoints |
|---|---|---|
hf_docs_searchanonymousread-only replaces hf_fs | async def hf_docs_search(
*,
query: str,
product: str | None = None,
scope: str | None = None,
limit: int = 10,
) -> dict[str, Any]:
"""Search Hugging Face documentation (docs, how-to guides, API reference) by question or keywords.
Find relevant pages for products such as Transformers, Hub or PEFT, optionally restricting
results to a product or documentation folder. Returns page URIs with section anchors and
excerpts when available; results are bounded search candidates. Then hf_docs_read.
Args:
query: Question or keywords, e.g. "load a LoRA adapter".
product: Docs product, e.g. transformers, hub, peft (see hf_docs_read).
scope: hf://docs/PRODUCT[/PATH] to search one folder; overrides product.
limit: Maximum hits (max 25).
Returns: {
items: list[{kind: Literal["doc"], id: str, uri: str, url: str, title: str, anchor: str, excerpt: str, category: str}],
returnedCount: int,
nextCursor: None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
}
"""
.../**
* Search Hugging Face documentation (docs, how-to guides, API reference) by question or keywords.
* Find relevant pages for products such as Transformers, Hub or PEFT, optionally restricting
* results to a product or documentation folder. Returns page URIs with section anchors and
* excerpts when available; results are bounded search candidates. Then hf_docs_read.
*/
declare function hf_docs_search(args: {
// Question or keywords, e.g. "load a LoRA adapter".
query: string;
// Docs product, e.g. transformers, hub, peft (see hf_docs_read).
product?: string;
// hf://docs/PRODUCT[/PATH] to search one folder; overrides product.
scope?: string;
// Maximum hits (max 25). @default 10
limit?: number;
}): Promise<{
items: Array<{ kind: "doc"; id: string; uri: string; url: string; title?: string; anchor?: string; excerpt?: string; category?: string; }>;
returnedCount: number;
nextCursor: null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
}>;input schema{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Question or keywords, e.g. \"load a LoRA adapter\"."
},
"product": {
"description": "Docs product, e.g. transformers, hub, peft (see hf_docs_read).",
"type": "string"
},
"scope": {
"description": "hf://docs/PRODUCT[/PATH] to search one folder; overrides product.",
"type": "string"
},
"limit": {
"default": 10,
"description": "Maximum hits (max 25).",
"type": "integer"
}
},
"required": [
"query"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "doc"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"anchor": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"category": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": "null"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/docs/searchGET /api/docs/search/full-text (domain scope) |
hf_docs_readanonymousread-only replaces hf_fs | async def hf_docs_read(
*,
uri: str | None = None,
glob: str | None = None,
offset: int | None = 0,
maxBytes: int = 20000,
limit: int = 200,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Read Hugging Face documentation pages (docs, guides, sections) by URI or URL. Returns page text
or an anchored section as Markdown. Supply a product name to browse its page index, optionally
filtered by a page-path glob, or omit the URI to list documentation products. Continue page text
with nextOffset or the index with nextCursor. See hf_docs_search.
Args:
uri: hf://docs/PRODUCT[/PAGE.md], product, docs URL, or /.well-known/openapi.md.
glob: Index mode: glob over page paths, e.g. "**/quicktour*".
offset: Page mode: byte offset to start from (use nextOffset).
maxBytes: Page mode: maximum bytes of Markdown (default 20000, max 80000).
limit: Index mode: maximum pages listed (max 1000).
cursor: Index mode: nextCursor from a previous call.
Returns: {
mode: Literal["products", "index", "page"], # products, index: items; page: content.
uri: str,
items: list[{kind: Literal["doc"], id: str, uri: str, url: str, title: str, anchor: str, excerpt: str, category: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
kind: Literal["doc"],
id: str,
url: str,
section: str,
content: str,
offset: int,
bytes: int,
nextOffset: int | None,
}
"""
.../**
* Read Hugging Face documentation pages (docs, guides, sections) by URI or URL. Returns page text
* or an anchored section as Markdown. Supply a product name to browse its page index, optionally
* filtered by a page-path glob, or omit the URI to list documentation products. Continue page text
* with nextOffset or the index with nextCursor. See hf_docs_search.
*/
declare function hf_docs_read(args: {
// hf://docs/PRODUCT[/PAGE.md], product, docs URL, or /.well-known/openapi.md.
uri?: string;
// Index mode: glob over page paths, e.g. "**/quicktour*".
glob?: string;
// Page mode: byte offset to start from (use nextOffset). @default 0
offset?: number | null;
// Page mode: maximum bytes of Markdown (default 20000, max 80000). @default 20000
maxBytes?: number;
// Index mode: maximum pages listed (max 1000). @default 200
limit?: number;
// Index mode: nextCursor from a previous call.
cursor?: string | null;
}): Promise<{
// products, index: items; page: content.
mode: "products" | "index" | "page";
uri: string;
items?: Array<{ kind: "doc"; id: string; uri: string; url: string; title?: string; anchor?: string; excerpt?: string; category?: string; }>;
returnedCount?: number;
nextCursor?: string | null;
completeness?: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
kind?: "doc";
id?: string;
url?: string;
section?: string;
content?: string;
offset?: number;
bytes?: number;
nextOffset?: number | null;
}>;input schema{
"type": "object",
"properties": {
"uri": {
"description": "hf://docs/PRODUCT[/PAGE.md], product, docs URL, or /.well-known/openapi.md.",
"type": "string"
},
"glob": {
"description": "Index mode: glob over page paths, e.g. \"**/quicktour*\".",
"type": "string"
},
"offset": {
"default": 0,
"description": "Page mode: byte offset to start from (use nextOffset).",
"type": [
"integer",
"null"
]
},
"maxBytes": {
"default": 20000,
"description": "Page mode: maximum bytes of Markdown (default 20000, max 80000).",
"type": "integer"
},
"limit": {
"default": 200,
"description": "Index mode: maximum pages listed (max 1000).",
"type": "integer"
},
"cursor": {
"description": "Index mode: nextCursor from a previous call.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"products",
"index",
"page"
],
"description": "products, index: items; page: content."
},
"uri": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "doc"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"anchor": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"category": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
},
"kind": {
"type": "string",
"const": "doc"
},
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"section": {
"type": "string"
},
"content": {
"type": "string"
},
"offset": {
"type": "integer"
},
"bytes": {
"type": "integer"
},
"nextOffset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"mode",
"uri"
]
} | GET /api/docsGET /docs/{product}/llms.txtGET /docs/{product}/{version}/{page}.md |
Callable Spaces (2)
| Tool | Definition | Endpoints |
|---|---|---|
hf_space_toolsanonymousread-only replaces dynamic_space | async def hf_space_tools(*, space: str) -> dict[str, Any]:
"""Inspect Hugging Face Space MCP tools (MCP endpoint only, not plain Gradio API routes) before
calling a Space. Select a Space by ID, URI or URL to get tool names, descriptions, argument
schemas and file inputs that accept public URLs. Reports runtime stage, SDK and hardware; some
Spaces tagged mcp-server expose no MCP tools (for Gradio-only Spaces inspect app.py with
hf_repo_read_text). Then hf_space_invoke.
Args:
space: Space: hf://spaces/owner/name (preferred), owner/name or URL.
Returns: {
space: {kind: str, id: str, uri: str, url: str, sdk: str, stage: str, running: bool, hardware: str},
tools: list[{name: str, description: str, inputSchema: dict[str, Any], fileInputs: list[str], locallyValidated: bool, schemaOmitted: bool}],
returnedCount: int,
truncated: bool, # More tools exist than were returned.
note: str,
}
"""
.../**
* Inspect Hugging Face Space MCP tools (MCP endpoint only, not plain Gradio API routes) before
* calling a Space. Select a Space by ID, URI or URL to get tool names, descriptions, argument
* schemas and file inputs that accept public URLs. Reports runtime stage, SDK and hardware; some
* Spaces tagged mcp-server expose no MCP tools (for Gradio-only Spaces inspect app.py with
* hf_repo_read_text). Then hf_space_invoke.
*/
declare function hf_space_tools(args: {
// Space: hf://spaces/owner/name (preferred), owner/name or URL.
space: string;
}): Promise<{
space: { kind: string; id: string; uri: string; url: string; sdk?: string; stage?: string; running: boolean; hardware?: string; };
tools: Array<{ name: string; description: string; inputSchema: Record<string, unknown>; fileInputs: string[]; locallyValidated: boolean; schemaOmitted?: boolean; }>;
returnedCount: number;
// More tools exist than were returned.
truncated: boolean;
note?: string;
}>;input schema{
"type": "object",
"properties": {
"space": {
"type": "string",
"description": "Space: hf://spaces/owner/name (preferred), owner/name or URL."
}
},
"required": [
"space"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"space": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"sdk": {
"type": "string"
},
"stage": {
"type": "string"
},
"running": {
"type": "boolean"
},
"hardware": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url",
"running"
]
},
"tools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Pass as tool to hf_space_invoke."
},
"description": {
"type": "string"
},
"inputSchema": {
"type": "object"
},
"fileInputs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Parameters that take a file: pass a public http(s) URL as the value."
},
"locallyValidated": {
"type": "boolean",
"description": "False: arguments are passed through unchecked."
},
"schemaOmitted": {
"description": "Too large to return; see the Space docs.",
"type": "boolean"
}
},
"required": [
"name",
"description",
"inputSchema",
"fileInputs",
"locallyValidated"
]
}
},
"returnedCount": {
"type": "integer"
},
"truncated": {
"type": "boolean",
"description": "More tools exist than were returned."
},
"note": {
"type": "string"
}
},
"required": [
"space",
"tools",
"returnedCount",
"truncated"
]
} | GET /api/spaces/{id}?expand=subdomain&expand=runtimeGET https://{sub}.hf.space/gradio_api/mcp/schema |
hf_space_invokeanonymousmutating replaces dynamic_space | async def hf_space_invoke(*, space: str, tool: str, arguments: dict[str, Any] = {}) -> dict[str, Any]:
"""Run Hugging Face Space tools (Gradio apps, AI demos) by exact tool name and JSON arguments.
Select a Space by ID, URI or URL and supply arguments matching its input schema, with file
inputs as public HTTP(S) URLs. Results include text, any image, audio or file content returned,
warnings and a tool error indicator. The call runs the remote app, which may have side effects;
ZeroGPU calls use the caller's quota. See hf_space_tools.
Args:
space: Space to run: hf://spaces/owner/name (preferred), "owner/name", or a Space URL.
tool: Exact tool name from hf_space_tools.
arguments: Arguments matching the tool's inputSchema; files as public http(s) URLs.
Returns: {
space: {kind: str, id: str, uri: str, url: str},
tool: str,
isError: bool, # The error message is in text.
text: str, # About 20,000 characters at most.
textTruncated: bool,
media: list[{type: Literal["image", "audio", "resource_link", "resource"], mimeType: str, uri: str}], # 8 MiB of media in total; includes links to Gradio file outputs found in text.
warnings: list[str],
}
"""
.../**
* Run Hugging Face Space tools (Gradio apps, AI demos) by exact tool name and JSON arguments.
* Select a Space by ID, URI or URL and supply arguments matching its input schema, with file
* inputs as public HTTP(S) URLs. Results include text, any image, audio or file content returned,
* warnings and a tool error indicator. The call runs the remote app, which may have side effects;
* ZeroGPU calls use the caller's quota. See hf_space_tools.
*/
declare function hf_space_invoke(args: {
// Space to run: hf://spaces/owner/name (preferred), "owner/name", or a Space URL.
space: string;
// Exact tool name from hf_space_tools.
tool: string;
// Arguments matching the tool's inputSchema; files as public http(s) URLs. @default {}
arguments?: Record<string, unknown>;
}): Promise<{
space: { kind: string; id: string; uri: string; url: string; };
tool: string;
// The error message is in text.
isError: boolean;
// About 20,000 characters at most.
text: string;
textTruncated: boolean;
// 8 MiB of media in total; includes links to Gradio file outputs found in text.
media: Array<{ type: "image" | "audio" | "resource_link" | "resource"; mimeType?: string; uri?: string; }>;
warnings: string[];
}>;input schema{
"type": "object",
"properties": {
"space": {
"type": "string",
"description": "Space to run: hf://spaces/owner/name (preferred), \"owner/name\", or a Space URL."
},
"tool": {
"type": "string",
"description": "Exact tool name from hf_space_tools."
},
"arguments": {
"default": {},
"description": "Arguments matching the tool's inputSchema; files as public http(s) URLs.",
"type": "object",
"additionalProperties": {}
}
},
"required": [
"space",
"tool"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"space": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"tool": {
"type": "string"
},
"isError": {
"type": "boolean",
"description": "The error message is in text."
},
"text": {
"type": "string",
"description": "About 20,000 characters at most."
},
"textTruncated": {
"type": "boolean"
},
"media": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"audio",
"resource_link",
"resource"
]
},
"mimeType": {
"type": "string"
},
"uri": {
"type": "string"
}
},
"required": [
"type"
]
},
"description": "8 MiB of media in total; includes links to Gradio file outputs found in text."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"space",
"tool",
"isError",
"text",
"textTruncated",
"media",
"warnings"
]
} | POST https://{sub}.hf.space/gradio_api/mcp/ (tools/call) |
Account & repository writes (3)
| Tool | Definition | Endpoints |
|---|---|---|
hf_whoamianonymousread-only replaces hf_whoami | async def hf_whoami() -> dict[str, Any]:
"""Check whether you are signed in to Hugging Face and as whom: signedIn, username (account.name),
Hub account ID, type, profile URL and PRO status. Returns organization memberships
(organizations[].name is the handle) with role, plan, access restrictions and resource groups,
plus the credential: token role and fine-grained permissions, OAuth scopes and expiry, or app
token entities. Signed out (no or rejected token): null account and credential, with sign-in
guidance. Use account.name as the owner for my models, datasets or Spaces. The token value stays
hidden.
Returns: {
signedIn: bool,
account: {id: str, type: Literal["user", "org", "app"], name: str, url: str, isPro: bool} | None, # null when signed out.
organizations: list[{id: str, name: str, displayName: str, url: str, role: str, plan: str, securityRestrictions: list[str], resourceGroups: list[dict[str, Any]]}],
credential: {type: Literal["personal_access_token"], role: Literal["read", "write", "fine_grained"], createdAt: str, fineGrained: dict[str, Any]} | {type: Literal["oauth"], expiresAt: str, scopes: list[str]} | {type: Literal["app_token"], role: str, entities: list[dict[str, Any]]} | {type: Literal["other"], expiresAt: str} | None, # The current credential (type, role, scopes); never its value. null when signed out.
guidance: str, # Only when signed out: how to sign in.
}
"""
.../**
* Check whether you are signed in to Hugging Face and as whom: signedIn, username (account.name),
* Hub account ID, type, profile URL and PRO status. Returns organization memberships
* (organizations[].name is the handle) with role, plan, access restrictions and resource groups,
* plus the credential: token role and fine-grained permissions, OAuth scopes and expiry, or app
* token entities. Signed out (no or rejected token): null account and credential, with sign-in
* guidance. Use account.name as the owner for my models, datasets or Spaces. The token value stays
* hidden.
*/
declare function hf_whoami(): Promise<{
signedIn: boolean;
// null when signed out.
account: { id: string; type: "user" | "org" | "app"; name: string; url?: string; isPro?: boolean; } | null;
organizations: Array<{ id: string; name: string; displayName: string; url: string; role?: string; plan?: string; securityRestrictions?: string[]; resourceGroups?: Record<string, unknown>[]; }>;
// The current credential (type, role, scopes); never its value. null when signed out.
credential: { type: "personal_access_token"; role: "read" | "write" | "fine_grained"; createdAt?: string; fineGrained?: Record<string, unknown>; } | { type: "oauth"; expiresAt?: string; scopes?: string[]; } | { type: "app_token"; role?: string; entities: Record<string, unknown>[]; } | { type: "other"; expiresAt?: string; } | null;
// Only when signed out: how to sign in.
guidance?: string;
}>;input schema{
"type": "object",
"properties": {},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"signedIn": {
"type": "boolean"
},
"account": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"user",
"org",
"app"
]
},
"name": {
"type": "string",
"description": "Username: use as namespace, author or owner."
},
"url": {
"type": "string"
},
"isPro": {
"type": "boolean"
}
},
"required": [
"id",
"type",
"name"
]
},
{
"type": "null"
}
],
"description": "null when signed out."
},
"organizations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string",
"description": "Organization handle: use as namespace or author."
},
"displayName": {
"type": "string"
},
"url": {
"type": "string"
},
"role": {
"type": "string"
},
"plan": {
"type": "string"
},
"securityRestrictions": {
"type": "array",
"items": {
"type": "string"
}
},
"resourceGroups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"role": {
"type": "string"
}
},
"required": [
"id",
"name",
"role"
]
}
}
},
"required": [
"id",
"name",
"displayName",
"url"
]
}
},
"credential": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "personal_access_token"
},
"role": {
"type": "string",
"enum": [
"read",
"write",
"fine_grained"
]
},
"createdAt": {
"type": "string"
},
"fineGrained": {
"type": "object",
"description": "Only for fine_grained tokens."
}
},
"required": [
"type",
"role"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "oauth"
},
"expiresAt": {
"type": "string"
},
"scopes": {
"description": "Absent when the scope claim could not be read.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "app_token"
},
"role": {
"type": "string"
},
"entities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket",
"container",
"kernel",
"org"
]
},
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
}
},
"required": [
"type",
"entities"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "other"
},
"expiresAt": {
"type": "string"
}
},
"required": [
"type"
]
}
]
},
{
"type": "null"
}
],
"description": "The current credential (type, role, scopes); never its value. null when signed out."
},
"guidance": {
"description": "Only when signed out: how to sign in.",
"type": "string"
}
},
"required": [
"signedIn",
"account",
"organizations",
"credential"
]
} | GET /api/whoami-v2 |
hf_repo_createcanCreateReposmutating replaces create_repo | async def hf_repo_create(
*,
repo: str,
private: bool | None = None,
sdk: Literal["gradio", "docker", "static"] | None = None,
flavor: str | None = None,
source: str | None = None,
) -> dict[str, Any]:
"""Create Hugging Face repositories (model, dataset, Space) or a storage bucket by owner and name.
Duplicate an existing model, dataset or Space into the same repository type. Choose public or
private visibility, a Gradio, Docker or static app SDK, and optional Space GPU hardware. Returns
the repository ID, URI and URL. Paid Space hardware bills the owner from creation.
Args:
repo: New repository, e.g. hf://spaces/OWNER/NAME (bare OWNER/NAME = model).
private: Visibility (default public, or the source's when duplicating).
sdk: Space SDK (default static, or gradio with zero-a10g).
flavor: Space flavor, e.g. zero-a10g (PRO), t4-small; paid flavors bill at once.
source: Repository to duplicate (same type as repo) instead of creating empty.
Returns: {
action: Literal["created", "duplicated"],
repo: {kind: str, id: str, uri: str, url: str},
source: dict[str, Any],
sdk: str,
runtime: {stage: str, hardware: {requested: str, current: str}, confirmed: bool}, # Only when flavor was set.
copyStatus: {pending: bool, numFiles: float, filesCopied: float}, # Duplication: polled once; files may still be copying.
}
"""
.../**
* Create Hugging Face repositories (model, dataset, Space) or a storage bucket by owner and name.
* Duplicate an existing model, dataset or Space into the same repository type. Choose public or
* private visibility, a Gradio, Docker or static app SDK, and optional Space GPU hardware. Returns
* the repository ID, URI and URL. Paid Space hardware bills the owner from creation.
*/
declare function hf_repo_create(args: {
// New repository, e.g. hf://spaces/OWNER/NAME (bare OWNER/NAME = model).
repo: string;
// Visibility (default public, or the source's when duplicating).
private?: boolean;
// Space SDK (default static, or gradio with zero-a10g).
sdk?: "gradio" | "docker" | "static";
// Space flavor, e.g. zero-a10g (PRO), t4-small; paid flavors bill at once.
flavor?: string;
// Repository to duplicate (same type as repo) instead of creating empty.
source?: string;
}): Promise<{
action: "created" | "duplicated";
repo: { kind: string; id: string; uri: string; url: string; };
source?: Record<string, unknown>;
sdk?: string;
// Only when flavor was set.
runtime?: { stage?: string; hardware: { requested: string; current?: string; }; confirmed: boolean; };
// Duplication: polled once; files may still be copying.
copyStatus?: { pending: boolean; numFiles?: number; filesCopied?: number; };
}>;input schema{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "New repository, e.g. hf://spaces/OWNER/NAME (bare OWNER/NAME = model)."
},
"private": {
"description": "Visibility (default public, or the source's when duplicating).",
"type": "boolean"
},
"sdk": {
"description": "Space SDK (default static, or gradio with zero-a10g).",
"type": "string",
"enum": [
"gradio",
"docker",
"static"
]
},
"flavor": {
"description": "Space flavor, e.g. zero-a10g (PRO), t4-small; paid flavors bill at once.",
"type": "string"
},
"source": {
"description": "Repository to duplicate (same type as repo) instead of creating empty.",
"type": "string"
}
},
"required": [
"repo"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"created",
"duplicated"
]
},
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"source": {
"type": "object"
},
"sdk": {
"type": "string"
},
"runtime": {
"description": "Only when flavor was set.",
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"hardware": {
"type": "object",
"properties": {
"requested": {
"type": "string"
},
"current": {
"type": "string"
}
},
"required": [
"requested"
]
},
"confirmed": {
"type": "boolean"
}
},
"required": [
"hardware",
"confirmed"
]
},
"copyStatus": {
"description": "Duplication: polled once; files may still be copying.",
"type": "object",
"properties": {
"pending": {
"type": "boolean"
},
"numFiles": {
"type": "number"
},
"filesCopied": {
"type": "number"
}
},
"required": [
"pending"
]
}
},
"required": [
"action",
"repo"
]
} | POST /api/repos/createPOST /api/buckets/{ns}/{name}POST /api/{t}/{id}/duplicate + GET …/duplicate/status |
hf_repo_write_filescanWriteFilesdestructive replaces hf_fs_write | async def hf_repo_write_files(
*,
repo: str,
changes: list[dict[str, Any]],
message: str,
revision: str | None = None,
createPr: bool = False,
description: str | None = None,
parentCommit: str | None = None,
) -> dict[str, Any]:
"""Upload and save files to a model, dataset or Space repository or storage bucket. Create,
overwrite, rename, move or delete paths using text or base64 content. Repository changes can
target a branch or open a pull request. Overwriting replaces file content; deleting removes
files.
Args:
repo: Target repository or bucket, e.g. hf://spaces/owner/app[@branch].
changes: One commit (max 100 ops): put (path, text|base64), delete (path), move.
message: Commit title.
revision: Target branch (default main). Not for buckets.
createPr: Open a pull request instead of committing to the branch.
description: Commit or pull request description.
parentCommit: Fail if the branch head moved past this commit SHA (optimistic concurrency).
Returns: {
repo: {kind: str, id: str, uri: str, url: str},
revision: str,
commit: {oid: str, url: str},
pullRequestUrl: str,
changes: list[{op: Literal["put", "delete", "move"], path: str, from: str, bytes: int, file: dict[str, Any]}],
}
"""
.../**
* Upload and save files to a model, dataset or Space repository or storage bucket. Create,
* overwrite, rename, move or delete paths using text or base64 content. Repository changes can
* target a branch or open a pull request. Overwriting replaces file content; deleting removes
* files.
*/
declare function hf_repo_write_files(args: {
// Target repository or bucket, e.g. hf://spaces/owner/app[@branch].
repo: string;
// One commit (max 100 ops): put (path, text|base64), delete (path), move.
changes: Array<{ op: "put"; path: string; text?: string; base64?: string; } | { op: "delete"; path: string; } | { op: "move"; from: string; to: string; }>;
// Commit title.
message: string;
// Target branch (default main). Not for buckets.
revision?: string;
// Open a pull request instead of committing to the branch. @default false
createPr?: boolean;
// Commit or pull request description.
description?: string;
// Fail if the branch head moved past this commit SHA (optimistic concurrency).
parentCommit?: string;
}): Promise<{
repo: { kind: string; id: string; uri: string; url: string; };
revision?: string;
commit?: { oid: string; url: string; };
pullRequestUrl?: string;
changes: Array<{ op: "put" | "delete" | "move"; path: string; from?: string; bytes?: number; file?: Record<string, unknown>; }>;
}>;input schema{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Target repository or bucket, e.g. hf://spaces/owner/app[@branch]."
},
"changes": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "put"
},
"path": {
"type": "string",
"description": "File path inside the repository, e.g. \"src/app.py\"."
},
"text": {
"description": "UTF-8 file content.",
"type": "string"
},
"base64": {
"description": "Binary file content as standard base64.",
"type": "string"
}
},
"required": [
"op",
"path"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "delete"
},
"path": {
"type": "string",
"description": "File path inside the repository, e.g. \"src/app.py\"."
}
},
"required": [
"op",
"path"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"const": "move"
},
"from": {
"type": "string",
"description": "Existing file path."
},
"to": {
"type": "string",
"description": "New file path."
}
},
"required": [
"op",
"from",
"to"
],
"additionalProperties": false
}
]
},
"description": "One commit (max 100 ops): put (path, text|base64), delete (path), move."
},
"message": {
"type": "string",
"description": "Commit title."
},
"revision": {
"description": "Target branch (default main). Not for buckets.",
"type": "string"
},
"createPr": {
"default": false,
"description": "Open a pull request instead of committing to the branch.",
"type": "boolean"
},
"description": {
"description": "Commit or pull request description.",
"type": "string"
},
"parentCommit": {
"description": "Fail if the branch head moved past this commit SHA (optimistic concurrency).",
"type": "string"
}
},
"required": [
"repo",
"changes",
"message"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"revision": {
"type": "string"
},
"commit": {
"type": "object",
"properties": {
"oid": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"oid",
"url"
]
},
"pullRequestUrl": {
"type": "string"
},
"changes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"put",
"delete",
"move"
]
},
"path": {
"type": "string"
},
"from": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"file": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"required": [
"op",
"path"
]
}
}
},
"required": [
"repo",
"changes"
]
} | POST /api/{t}/{id}/preupload/{rev}POST /api/{t}/{id}/commit/{rev}POST /api/buckets/{id}/batch |
People & community (read-only) (8)
| Tool | Definition | Endpoints |
|---|---|---|
hf_profile_getanonymousread-only new | async def hf_profile_get(
*,
handles: list[str],
kind: Literal["user", "org"] | None = None,
includeSocials: bool = True,
) -> dict[str, Any]:
"""Look up Hugging Face user or organization profiles by handle: full name, bio, avatar, follower
and following counts, numbers of models, datasets and Spaces, organizations, plan and social
links (GitHub, X/Twitter, LinkedIn). Accepts several handles at once; user vs organization is
detected automatically. Counts come from the profile overview and may include items an anonymous
listing cannot see. For the signed-in account see hf_whoami.
Args:
handles: Up to 20 usernames or organization names (or profile uris).
kind: Skip auto-detection: look up only users or only organizations.
includeSocials: Also fetch social profile links (one extra request per handle).
Returns: {
items: list[{kind: Literal["user", "org"], id: str, uri: str, url: str, fullname: str, bio: str, avatarUrl: str, isPro: bool, plan: str, verified: bool, createdAt: str, counts: dict[str, Any], organizations: list[dict[str, Any]], organizationsTruncated: Literal[True], numOrganizations: int, socials: dict[str, str]} | {ref: str, error: dict[str, Any]}], # One per handle, in order: a profile or {ref, error}.
returnedCount: float,
}
"""
.../**
* Look up Hugging Face user or organization profiles by handle: full name, bio, avatar, follower
* and following counts, numbers of models, datasets and Spaces, organizations, plan and social
* links (GitHub, X/Twitter, LinkedIn). Accepts several handles at once; user vs organization is
* detected automatically. Counts come from the profile overview and may include items an anonymous
* listing cannot see. For the signed-in account see hf_whoami.
*/
declare function hf_profile_get(args: {
// Up to 20 usernames or organization names (or profile uris).
handles: string[];
// Skip auto-detection: look up only users or only organizations.
kind?: "user" | "org";
// Also fetch social profile links (one extra request per handle). @default true
includeSocials?: boolean;
}): Promise<{
// One per handle, in order: a profile or {ref, error}.
items: Array<{ kind: "user" | "org"; id: string; uri: string; url: string; fullname?: string; bio?: string; avatarUrl?: string; isPro?: boolean; plan?: string; verified?: boolean; createdAt?: string; counts: Record<string, unknown>; organizations?: Record<string, unknown>[]; organizationsTruncated?: true; numOrganizations?: number; socials?: Record<string, string>; } | { ref: string; error: Record<string, unknown>; }>;
returnedCount: number;
}>;input schema{
"type": "object",
"properties": {
"handles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Up to 20 usernames or organization names (or profile uris)."
},
"kind": {
"description": "Skip auto-detection: look up only users or only organizations.",
"type": "string",
"enum": [
"user",
"org"
]
},
"includeSocials": {
"default": true,
"description": "Also fetch social profile links (one extra request per handle).",
"type": "boolean"
}
},
"required": [
"handles"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"user",
"org"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"fullname": {
"type": "string"
},
"bio": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"isPro": {
"type": "boolean"
},
"plan": {
"type": "string"
},
"verified": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"counts": {
"type": "object",
"description": "May include private or gated items that listings do not show."
},
"organizations": {
"description": "First 100; numOrganizations is the total when organizationsTruncated.",
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"user",
"org"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"organizationsTruncated": {
"type": "boolean",
"const": true
},
"numOrganizations": {
"type": "integer"
},
"socials": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"kind",
"id",
"uri",
"url",
"counts"
]
},
{
"type": "object",
"properties": {
"ref": {
"type": "string"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"ref",
"error"
]
}
]
},
"description": "One per handle, in order: a profile or {ref, error}."
},
"returnedCount": {
"type": "number"
}
},
"required": [
"items",
"returnedCount"
]
} | GET /api/users/{u}/overviewGET /api/organizations/{o}/overviewGET /api/{users|organizations}/{h}/socials |
hf_org_membersanonymousread-only new | async def hf_org_members(
*,
handle: str,
adminsOnly: bool = False,
limit: int = 100,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""List the members of a Hugging Face organization (team, company or community org): usernames,
full names, avatars, PRO status and roles where visible, with cursor paging. Set adminsOnly to
list only the organization admins; that needs an access token (not OAuth) of an organization
member. If the token is refused for the organization the public list is read anonymously and the
result carries an access block explaining why (roles are then omitted). Member lists are bounded
per call; continue with nextCursor. For the organization overview and member count see
hf_profile_get.
Args:
handle: Organization: a username, organization name or profile uri.
adminsOnly: List only admins (needs a member's access token; OAuth is not accepted).
limit: Maximum items to return (default 100, max 500).
cursor: nextCursor from a previous call (same args); large lists take 10s of pages.
Returns: {
items: list[{kind: Literal["user", "org"], id: str, uri: str, url: str, fullname: str, avatarUrl: str, isPro: bool, role: str, orgType: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
access: {mode: Literal["anonymous-fallback"], reason: Literal["sso", "sso-welcome", "ip-allowlist", "token-policy", "token-revoked", "mfa", "oauth-bound-org", "token-invalid", "forbidden"], rolesOmitted: Literal[True], note: str}, # Present only when the token was refused and the page was read anonymously.
}
"""
.../**
* List the members of a Hugging Face organization (team, company or community org): usernames,
* full names, avatars, PRO status and roles where visible, with cursor paging. Set adminsOnly to
* list only the organization admins; that needs an access token (not OAuth) of an organization
* member. If the token is refused for the organization the public list is read anonymously and the
* result carries an access block explaining why (roles are then omitted). Member lists are bounded
* per call; continue with nextCursor. For the organization overview and member count see
* hf_profile_get.
*/
declare function hf_org_members(args: {
// Organization: a username, organization name or profile uri.
handle: string;
// List only admins (needs a member's access token; OAuth is not accepted). @default false
adminsOnly?: boolean;
// Maximum items to return (default 100, max 500). @default 100
limit?: number;
// nextCursor from a previous call (same args); large lists take 10s of pages.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "user" | "org"; id: string; uri: string; url: string; fullname?: string; avatarUrl?: string; isPro?: boolean; role?: string; orgType?: string; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
// Present only when the token was refused and the page was read anonymously.
access?: { mode: "anonymous-fallback"; reason: "sso" | "sso-welcome" | "ip-allowlist" | "token-policy" | "token-revoked" | "mfa" | "oauth-bound-org" | "token-invalid" | "forbidden"; rolesOmitted: true; note: string; };
}>;input schema{
"type": "object",
"properties": {
"handle": {
"description": "Organization: a username, organization name or profile uri.",
"type": "string"
},
"adminsOnly": {
"default": false,
"description": "List only admins (needs a member's access token; OAuth is not accepted).",
"type": "boolean"
},
"limit": {
"default": 100,
"description": "Maximum items to return (default 100, max 500).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); large lists take 10s of pages.",
"type": [
"string",
"null"
]
}
},
"required": [
"handle"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"user",
"org"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"fullname": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"isPro": {
"type": "boolean"
},
"role": {
"description": "admin, write, contributor or read; when visible to the token.",
"type": "string"
},
"orgType": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
},
"access": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "anonymous-fallback"
},
"reason": {
"type": "string",
"enum": [
"sso",
"sso-welcome",
"ip-allowlist",
"token-policy",
"token-revoked",
"mfa",
"oauth-bound-org",
"token-invalid",
"forbidden"
]
},
"rolesOmitted": {
"type": "boolean",
"const": true
},
"note": {
"type": "string"
}
},
"required": [
"mode",
"reason",
"rolesOmitted",
"note"
],
"description": "Present only when the token was refused and the page was read anonymously."
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/organizations/{o}/membersGET /api/organizations/{o}/members/admins (token) |
hf_follow_graphanonymousread-only new | async def hf_follow_graph(
*,
handle: str,
relation: Literal["followers", "following", "following_orgs"] = "followers",
kind: Literal["user", "org"] | None = None,
limit: int = 100,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""List who follows a Hugging Face user or organization, or who a user follows (people, or
organizations with following_orgs), with cursor paging. Returns usernames or organization names
with full names, avatars and PRO status; each record uri is accepted by hf_profile_get. User vs
organization is detected automatically; organizations only have followers. Use it to explore a
community around an author or lab.
Args:
handle: User or organization: a username, organization name or profile uri.
relation: followers, following, or organizations followed (users only).
kind: Skip auto-detection of user vs organization.
limit: Maximum items to return (default 100, max 500).
cursor: nextCursor from a previous call (same args); large lists take 10s of pages.
Returns: {
items: list[{kind: Literal["user", "org"], id: str, uri: str, url: str, fullname: str, avatarUrl: str, isPro: bool, role: str, orgType: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
}
"""
.../**
* List who follows a Hugging Face user or organization, or who a user follows (people, or
* organizations with following_orgs), with cursor paging. Returns usernames or organization names
* with full names, avatars and PRO status; each record uri is accepted by hf_profile_get. User vs
* organization is detected automatically; organizations only have followers. Use it to explore a
* community around an author or lab.
*/
declare function hf_follow_graph(args: {
// User or organization: a username, organization name or profile uri.
handle: string;
// followers, following, or organizations followed (users only). @default "followers"
relation?: "followers" | "following" | "following_orgs";
// Skip auto-detection of user vs organization.
kind?: "user" | "org";
// Maximum items to return (default 100, max 500). @default 100
limit?: number;
// nextCursor from a previous call (same args); large lists take 10s of pages.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "user" | "org"; id: string; uri: string; url: string; fullname?: string; avatarUrl?: string; isPro?: boolean; role?: string; orgType?: string; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
}>;input schema{
"type": "object",
"properties": {
"handle": {
"description": "User or organization: a username, organization name or profile uri.",
"type": "string"
},
"relation": {
"default": "followers",
"description": "followers, following, or organizations followed (users only).",
"type": "string",
"enum": [
"followers",
"following",
"following_orgs"
]
},
"kind": {
"description": "Skip auto-detection of user vs organization.",
"type": "string",
"enum": [
"user",
"org"
]
},
"limit": {
"default": 100,
"description": "Maximum items to return (default 100, max 500).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); large lists take 10s of pages.",
"type": [
"string",
"null"
]
}
},
"required": [
"handle"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"user",
"org"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"fullname": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"isPro": {
"type": "boolean"
},
"role": {
"description": "admin, write, contributor or read; when visible to the token.",
"type": "string"
},
"orgType": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/users/{u}/followers|following|following/orgsGET /api/organizations/{o}/followers |
hf_user_likesanonymousread-only new | async def hf_user_likes(
*,
handle: str,
kindsAny: list[Literal["model", "dataset", "space"]] | None = None,
sort: Literal["recent", "likes", "downloads"] = "recent",
limit: int = 50,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""List the models, datasets and Spaces a Hugging Face user has liked (favorites, bookmarks), most
recent first with cursor paging, or ranked by the liked repositories' likes or downloads within
a bounded window of the most recent likes. Filter by repository kind. Returns repository hf://
URIs with the like date, ready for repository tools. For who liked a given repository see
hf_repo_likers.
Args:
handle: User: a username, organization name or profile uri.
kindsAny: Only these repository kinds (default: all).
sort: recent (paged); likes/downloads rerank the 50 latest likes (no paging).
limit: Maximum items to return (default 50, max 100).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
items: list[{kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str, likedAt: str, likes: float, downloads: float}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, pagesScanned: int, rowsScanned: int, rankingWindow: int},
}
"""
.../**
* List the models, datasets and Spaces a Hugging Face user has liked (favorites, bookmarks), most
* recent first with cursor paging, or ranked by the liked repositories' likes or downloads within
* a bounded window of the most recent likes. Filter by repository kind. Returns repository hf://
* URIs with the like date, ready for repository tools. For who liked a given repository see
* hf_repo_likers.
*/
declare function hf_user_likes(args: {
// User: a username, organization name or profile uri.
handle: string;
// Only these repository kinds (default: all).
kindsAny?: Array<"model" | "dataset" | "space">;
// recent (paged); likes/downloads rerank the 50 latest likes (no paging). @default "recent"
sort?: "recent" | "likes" | "downloads";
// Maximum items to return (default 50, max 100). @default 50
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; likedAt?: string; likes?: number; downloads?: number; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; pagesScanned?: number; rowsScanned?: number; rankingWindow?: number; };
}>;input schema{
"type": "object",
"properties": {
"handle": {
"description": "User: a username, organization name or profile uri.",
"type": "string"
},
"kindsAny": {
"description": "Only these repository kinds (default: all).",
"type": "array",
"items": {
"type": "string",
"enum": [
"model",
"dataset",
"space"
]
}
},
"sort": {
"default": "recent",
"description": "recent (paged); likes/downloads rerank the 50 latest likes (no paging).",
"type": "string",
"enum": [
"recent",
"likes",
"downloads"
]
},
"limit": {
"default": 50,
"description": "Maximum items to return (default 50, max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"required": [
"handle"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"likedAt": {
"type": "string"
},
"likes": {
"description": "Popularity sorts only.",
"type": "number"
},
"downloads": {
"description": "Last 30 days; popularity sorts only.",
"type": "number"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"pagesScanned": {
"type": "integer"
},
"rowsScanned": {
"type": "integer"
},
"rankingWindow": {
"description": "Popularity sorts rank only this many most recent likes.",
"type": "integer"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/users/{u}/likes |
hf_repo_likersanonymousread-only new | async def hf_repo_likers(*, repo: str, limit: int = 100, cursor: str | None | None = None) -> dict[str, Any]:
"""List the users who liked a Hugging Face model, dataset or Space (its fans, likers, stargazers),
most recent first, with cursor paging. Returns usernames, full names, avatars and PRO status;
each record uri is accepted by hf_profile_get and hf_user_likes. The Hub returns the whole liker
list at once, so each page re-reads it and applies the offset locally.
Args:
repo: Model, dataset or Space: hf:// uri (preferred), owner/name (models), or URL.
limit: Maximum items to return (default 100, max 1000).
cursor: nextCursor from a previous call (same args); large lists take 10s of pages.
Returns: {
items: list[{kind: Literal["user", "org"], id: str, uri: str, url: str, fullname: str, avatarUrl: str, isPro: bool, role: str, orgType: str}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str},
}
"""
.../**
* List the users who liked a Hugging Face model, dataset or Space (its fans, likers, stargazers),
* most recent first, with cursor paging. Returns usernames, full names, avatars and PRO status;
* each record uri is accepted by hf_profile_get and hf_user_likes. The Hub returns the whole liker
* list at once, so each page re-reads it and applies the offset locally.
*/
declare function hf_repo_likers(args: {
// Model, dataset or Space: hf:// uri (preferred), owner/name (models), or URL.
repo: string;
// Maximum items to return (default 100, max 1000). @default 100
limit?: number;
// nextCursor from a previous call (same args); large lists take 10s of pages.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "user" | "org"; id: string; uri: string; url: string; fullname?: string; avatarUrl?: string; isPro?: boolean; role?: string; orgType?: string; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; };
}>;input schema{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "Model, dataset or Space: hf:// uri (preferred), owner/name (models), or URL."
},
"limit": {
"default": 100,
"description": "Maximum items to return (default 100, max 1000).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call (same args); large lists take 10s of pages.",
"type": [
"string",
"null"
]
}
},
"required": [
"repo"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"user",
"org"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"fullname": {
"type": "string"
},
"avatarUrl": {
"type": "string"
},
"isPro": {
"type": "boolean"
},
"role": {
"description": "admin, write, contributor or read; when visible to the token.",
"type": "string"
},
"orgType": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/{type}s/{id}/likers |
hf_activityanonymousread-only new | async def hf_activity(
*,
handle: str,
kind: Literal["user", "org"] | None = None,
typesAny: list[Literal["like", "update", "publish", "discussion", "upvote", "paper", "paper-daily", "paper-discussion", "collection", "article", "social-post"]] | None = None,
limit: int = 50,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Recent public activity of a Hugging Face user or organization (feed, timeline): new and updated
models, datasets and Spaces, likes, upvotes, papers, collections, articles, posts and
discussions, newest first, with cursor paging. Filter by event type; pass typesAny: ["upvote"]
alone to query the Hub upvotes feed directly (filter by targetType "paper" for upvoted papers).
Each event links its target as an hf:// uri for follow-up calls. The feed is not exhaustive:
counts derived from it are lower bounds. For commits of one repository see hf_repo_history.
Args:
handle: User or organization: a username, organization name or profile uri.
kind: Skip auto-detection of user vs organization feed.
typesAny: Filter by event type (single upvote/like/discussion/article queries Hub).
limit: Maximum items to return (default 50, max 100).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
items: list[{type: str, createdAt: str, actor: str, org: str, target: dict[str, Any], targetType: str, title: str, discussion: dict[str, Any]}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, pagesScanned: int, rowsScanned: int},
}
"""
.../**
* Recent public activity of a Hugging Face user or organization (feed, timeline): new and updated
* models, datasets and Spaces, likes, upvotes, papers, collections, articles, posts and
* discussions, newest first, with cursor paging. Filter by event type; pass typesAny: ["upvote"]
* alone to query the Hub upvotes feed directly (filter by targetType "paper" for upvoted papers).
* Each event links its target as an hf:// uri for follow-up calls. The feed is not exhaustive:
* counts derived from it are lower bounds. For commits of one repository see hf_repo_history.
*/
declare function hf_activity(args: {
// User or organization: a username, organization name or profile uri.
handle: string;
// Skip auto-detection of user vs organization feed.
kind?: "user" | "org";
// Filter by event type (single upvote/like/discussion/article queries Hub).
typesAny?: Array<"like" | "update" | "publish" | "discussion" | "upvote" | "paper" | "paper-daily" | "paper-discussion" | "collection" | "article" | "social-post">;
// Maximum items to return (default 50, max 100). @default 50
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
items: Array<{ type: string; createdAt?: string; actor?: string; org?: string; target?: Record<string, unknown>; targetType?: string; title?: string; discussion?: Record<string, unknown>; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; pagesScanned?: number; rowsScanned?: number; };
}>;input schema{
"type": "object",
"properties": {
"handle": {
"description": "User or organization: a username, organization name or profile uri.",
"type": "string"
},
"kind": {
"description": "Skip auto-detection of user vs organization feed.",
"type": "string",
"enum": [
"user",
"org"
]
},
"typesAny": {
"description": "Filter by event type (single upvote/like/discussion/article queries Hub).",
"type": "array",
"items": {
"type": "string",
"enum": [
"like",
"update",
"publish",
"discussion",
"upvote",
"paper",
"paper-daily",
"paper-discussion",
"collection",
"article",
"social-post"
]
}
},
"limit": {
"default": 50,
"description": "Maximum items to return (default 50, max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"required": [
"handle"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"actor": {
"type": "string"
},
"org": {
"type": "string"
},
"target": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"targetType": {
"type": "string"
},
"title": {
"type": "string"
},
"discussion": {
"type": "object",
"properties": {
"num": {
"type": "number"
},
"title": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"discussion",
"pull_request"
]
},
"url": {
"type": "string"
}
},
"required": [
"num",
"type",
"url"
]
}
},
"required": [
"type"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"pagesScanned": {
"type": "integer"
},
"rowsScanned": {
"type": "integer"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/recent-activity?feedType=user|org&entity=X |
hf_discussions_listanonymousread-only new | async def hf_discussions_list(
*,
repo: str | None = None,
owner: str | None = None,
status: Literal["open", "closed", "all"] = "open",
type: Literal["all", "discussion", "pull_request"] = "all",
author: str | None = None,
limit: int = 50,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""List discussions and pull requests on a Hugging Face model, dataset or Space (community tab), or
across the repositories of a user or organization: title, author, status, type, comment count
and dates, newest first, filtered by status, type or author. On Hugging Face, the
Discussions/Community tab includes both discussions and pull requests; leave type at its default
"all" unless explicitly excluding pull requests or listing PRs only. Owner mode scans a bounded
set of the most-liked repositories and reports its coverage. Read one thread with
hf_discussion_get.
Args:
repo: Repository: hf:// uri (preferred), owner/name or URL. Not with owner.
owner: Owner to scan (not with repo): a username, organization name or profile uri.
status: open (incl. draft PRs), closed (incl. merged), or all.
type: all (default, incl. PRs), discussion (excl. PRs), or pull_request.
author: Only threads opened by this user (name or profile uri).
limit: Maximum items to return (default 50, max 100).
cursor: nextCursor from a previous call with the same arguments.
Returns: {
items: list[{kind: Literal["discussion"], id: str, uri: str, url: str, repo: dict[str, Any], num: float, title: str, status: str, type: Literal["discussion", "pull_request"], author: str, createdAt: str, numComments: float, pinned: bool}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, total: int, reposScanned: int, numRepos: int, reposFailed: int, reposAtThreadCap: int},
}
"""
.../**
* List discussions and pull requests on a Hugging Face model, dataset or Space (community tab), or
* across the repositories of a user or organization: title, author, status, type, comment count
* and dates, newest first, filtered by status, type or author. On Hugging Face, the
* Discussions/Community tab includes both discussions and pull requests; leave type at its default
* "all" unless explicitly excluding pull requests or listing PRs only. Owner mode scans a bounded
* set of the most-liked repositories and reports its coverage. Read one thread with
* hf_discussion_get.
*/
declare function hf_discussions_list(args: {
// Repository: hf:// uri (preferred), owner/name or URL. Not with owner.
repo?: string;
// Owner to scan (not with repo): a username, organization name or profile uri.
owner?: string;
// open (incl. draft PRs), closed (incl. merged), or all. @default "open"
status?: "open" | "closed" | "all";
// all (default, incl. PRs), discussion (excl. PRs), or pull_request. @default "all"
type?: "all" | "discussion" | "pull_request";
// Only threads opened by this user (name or profile uri).
author?: string;
// Maximum items to return (default 50, max 100). @default 50
limit?: number;
// nextCursor from a previous call with the same arguments.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "discussion"; id: string; uri: string; url: string; repo: Record<string, unknown>; num: number; title?: string; status?: string; type: "discussion" | "pull_request"; author?: string; createdAt?: string; numComments?: number; pinned?: boolean; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; total?: number; reposScanned?: number; numRepos?: number; reposFailed?: number; reposAtThreadCap?: number; };
}>;input schema{
"type": "object",
"properties": {
"repo": {
"description": "Repository: hf:// uri (preferred), owner/name or URL. Not with owner.",
"type": "string"
},
"owner": {
"description": "Owner to scan (not with repo): a username, organization name or profile uri.",
"type": "string"
},
"status": {
"default": "open",
"description": "open (incl. draft PRs), closed (incl. merged), or all.",
"type": "string",
"enum": [
"open",
"closed",
"all"
]
},
"type": {
"default": "all",
"description": "all (default, incl. PRs), discussion (excl. PRs), or pull_request.",
"type": "string",
"enum": [
"all",
"discussion",
"pull_request"
]
},
"author": {
"description": "Only threads opened by this user (name or profile uri).",
"type": "string"
},
"limit": {
"default": 50,
"description": "Maximum items to return (default 50, max 100).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call with the same arguments.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "discussion"
},
"id": {
"type": "string",
"description": "owner/name#num"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"num": {
"type": "number"
},
"title": {
"type": "string"
},
"status": {
"description": "open, closed, merged or draft.",
"type": "string"
},
"type": {
"type": "string",
"enum": [
"discussion",
"pull_request"
]
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"numComments": {
"type": "number"
},
"pinned": {
"type": "boolean"
}
},
"required": [
"kind",
"id",
"uri",
"url",
"repo",
"num",
"type"
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"total": {
"description": "Hub match count, when reported.",
"type": "integer"
},
"reposScanned": {
"description": "owner: repositories read, of numRepos.",
"type": "integer"
},
"numRepos": {
"type": "integer"
},
"reposFailed": {
"description": "owner: repositories that could not be read.",
"type": "integer"
},
"reposAtThreadCap": {
"description": "owner: repositories that hit the 50-thread-per-repo cap.",
"type": "integer"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/{type}s/{id}/discussionsfan-out over an owner's repos via listings |
hf_discussion_getanonymousread-only new | async def hf_discussion_get(
*,
discussion: str,
num: int | None = None,
include: list[Literal["comments", "files"]] | None = None,
limit: int = 50,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Read one Hugging Face discussion or pull request (community tab thread): title, status, author,
comments in order (bounded text, with cursor continuation), the event timeline (commits, status
and title changes) and, for pull requests, the changed files parsed from the diff. Pass the
repository and the discussion number from hf_discussions_list. Comment text is markdown and may
be truncated per comment.
Args:
discussion: Discussion uri or id (owner/name#N), or a repository uri with num.
num: Discussion or pull request number (not needed when discussion names one).
include: Parts to include (default both; files: pull requests only).
limit: Maximum comments to return (default 50, max 200).
cursor: nextCursor from a previous call: continues the comments.
Returns: {
kind: Literal["discussion"],
id: str, # owner/name#num
uri: str,
url: str,
repo: {kind: str, id: str, uri: str, url: str},
num: float,
title: str,
status: str, # open, closed, merged or draft.
type: Literal["discussion", "pull_request"],
author: str,
createdAt: str,
numComments: float, # Whole thread.
pinned: bool,
locked: bool,
comments: list[{id: str, author: str, createdAt: str, text: str, textTruncated: bool, edited: bool, hidden: bool}],
returnedCount: float, # Comments in this page.
nextCursor: str | None,
timeline: list[{type: str, author: str, createdAt: str, detail: str}], # Non-comment events; first page only, up to 100.
files: list[{path: str, change: Literal["added", "deleted", "modified", "renamed"], from: str}], # Pull requests: first page only.
filesTruncated: bool, # More files changed, or the diff hit the size budget.
diffUrl: str,
targetBranch: str,
mergeCommit: str,
conflictingFiles: list[str],
}
"""
.../**
* Read one Hugging Face discussion or pull request (community tab thread): title, status, author,
* comments in order (bounded text, with cursor continuation), the event timeline (commits, status
* and title changes) and, for pull requests, the changed files parsed from the diff. Pass the
* repository and the discussion number from hf_discussions_list. Comment text is markdown and may
* be truncated per comment.
*/
declare function hf_discussion_get(args: {
// Discussion uri or id (owner/name#N), or a repository uri with num.
discussion: string;
// Discussion or pull request number (not needed when discussion names one).
num?: number;
// Parts to include (default both; files: pull requests only).
include?: Array<"comments" | "files">;
// Maximum comments to return (default 50, max 200). @default 50
limit?: number;
// nextCursor from a previous call: continues the comments.
cursor?: string | null;
}): Promise<{
kind: "discussion";
// owner/name#num
id: string;
uri: string;
url: string;
repo: { kind: string; id: string; uri: string; url: string; };
num: number;
title?: string;
// open, closed, merged or draft.
status?: string;
type: "discussion" | "pull_request";
author?: string;
createdAt?: string;
// Whole thread.
numComments: number;
pinned?: boolean;
locked?: boolean;
comments?: Array<{ id?: string; author?: string; createdAt?: string; text?: string; textTruncated?: boolean; edited?: boolean; hidden?: boolean; }>;
// Comments in this page.
returnedCount: number;
nextCursor: string | null;
// Non-comment events; first page only, up to 100.
timeline?: Array<{ type: string; author?: string; createdAt?: string; detail?: string; }>;
// Pull requests: first page only.
files?: Array<{ path: string; change: "added" | "deleted" | "modified" | "renamed"; from?: string; }>;
// More files changed, or the diff hit the size budget.
filesTruncated?: boolean;
diffUrl?: string;
targetBranch?: string;
mergeCommit?: string;
conflictingFiles?: string[];
}>;input schema{
"type": "object",
"properties": {
"discussion": {
"type": "string",
"description": "Discussion uri or id (owner/name#N), or a repository uri with num."
},
"num": {
"description": "Discussion or pull request number (not needed when discussion names one).",
"type": "integer"
},
"include": {
"description": "Parts to include (default both; files: pull requests only).",
"type": "array",
"items": {
"type": "string",
"enum": [
"comments",
"files"
]
}
},
"limit": {
"default": 50,
"description": "Maximum comments to return (default 50, max 200).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call: continues the comments.",
"type": [
"string",
"null"
]
}
},
"required": [
"discussion"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "discussion"
},
"id": {
"type": "string",
"description": "owner/name#num"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"repo": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"id",
"uri",
"url"
]
},
"num": {
"type": "number"
},
"title": {
"type": "string"
},
"status": {
"description": "open, closed, merged or draft.",
"type": "string"
},
"type": {
"type": "string",
"enum": [
"discussion",
"pull_request"
]
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"numComments": {
"type": "number",
"description": "Whole thread."
},
"pinned": {
"type": "boolean"
},
"locked": {
"type": "boolean"
},
"comments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"text": {
"description": "Markdown, clipped; absent for hidden comments.",
"type": "string"
},
"textTruncated": {
"type": "boolean"
},
"edited": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
}
}
}
},
"returnedCount": {
"type": "number",
"description": "Comments in this page."
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"timeline": {
"description": "Non-comment events; first page only, up to 100.",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"author": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"type"
]
}
},
"files": {
"description": "Pull requests: first page only.",
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"change": {
"type": "string",
"enum": [
"added",
"deleted",
"modified",
"renamed"
]
},
"from": {
"type": "string"
}
},
"required": [
"path",
"change"
]
}
},
"filesTruncated": {
"description": "More files changed, or the diff hit the size budget.",
"type": "boolean"
},
"diffUrl": {
"type": "string"
},
"targetBranch": {
"type": "string"
},
"mergeCommit": {
"type": "string"
},
"conflictingFiles": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"kind",
"id",
"uri",
"url",
"repo",
"num",
"type",
"numComments",
"returnedCount",
"nextCursor"
]
} | GET /api/{type}s/{id}/discussions/{num} |
Jobs (7)
| Tool | Definition | Endpoints |
|---|---|---|
hf_job_runcanManageJobsAndSandboxesdestructive replaces hf_jobs | async def hf_job_run(
*,
script: str | None = None,
dependencies: list[str] | None = None,
python: str | None = None,
scriptArgs: list[str] | None = None,
command: list[str] | str | None = None,
image: str | None = None,
space: str | None = None,
flavor: str = "cpu-basic",
timeout: str | int = "30m",
env: dict[str, str] | None = None,
secrets: dict[str, str] | None = None,
forwardHfToken: bool = False,
volumes: list[str] | None = None,
labels: dict[str, str] | None = None,
namespace: str | None = None,
resourceGroupId: str | None = None,
waitSeconds: int = 0,
) -> dict[str, Any]:
"""Run Hugging Face Jobs (Python scripts, Docker containers) on cloud CPU or GPU hardware. Execute
training, fine-tuning, batch inference, evaluation or data processing using a script with uv
dependencies or a command in a Docker or Space image. Choose hardware (T4, L4, A100, H200),
env/secrets, and on-demand hf:// FUSE volumes (~50-100 MB/s per job across many files; repos are
ro, buckets default rw; shard large scans across parallel jobs with waitSeconds=0, and use
large/concurrent reads). Logs retain only the last 80 KB (4,000 chars/line); write larger
results to a mounted rw bucket (or upload to a repo with forwardHfToken=true). Paid compute. See
hf_job_logs.
Args:
script: Python code for uv, a URL or a .py path in the image. Not with command.
dependencies: Extra pip packages for script (uv --with).
python: Python version for script, e.g. "3.12".
scriptArgs: Arguments passed to script.
command: argv, no shell, e.g. ["/bin/sh", "-lc", "cmd | cmd"]. Not with script.
image: Docker image (default python:3.12 for command, a uv image for script).
space: Use the Docker image of this Space instead of image.
flavor: Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h200.
timeout: Maximum run time: "30m", "2h", "90s" or seconds.
env: Environment variables (values never echoed).
secrets: Secret env variables (never echoed). "$HF_TOKEN" needs forwardHfToken.
forwardHfToken: Pass your token to the job as secret HF_TOKEN; enables "$HF_TOKEN" in secrets.
volumes: FUSE (~80 MB/s; repos ro, buckets rw): "hf://datasets/o/d[@rev][/p]:/data:ro".
labels: Labels (keys/values: max 100 chars, letters, digits, - and _).
namespace: User or org owning the jobs (name or profile uri; default: you).
resourceGroupId: Enterprise resource group for billing (needs namespace).
waitSeconds: Follow logs N sec (0: return at once for parallel launch; max 120, 100 lines).
Returns: {
job: {kind: Literal["job"], id: str, namespace: str, url: str, endpoint: str, createdAt: str, finishedAt: str, dockerImage: str, spaceId: str, command: list[str], arguments: list[str], environmentVariableNames: list[str], secretNames: list[str], flavor: str, status: {stage: str, message: str | None, exposeUrls: list[str]}, owner: str, createdBy: str, tags: list[str], labels: dict[str, str], timeoutSeconds: float},
logs: {lines: list[str], finished: bool, followStopped: bool, linesTruncated: bool},
note: str,
}
"""
.../**
* Run Hugging Face Jobs (Python scripts, Docker containers) on cloud CPU or GPU hardware. Execute
* training, fine-tuning, batch inference, evaluation or data processing using a script with uv
* dependencies or a command in a Docker or Space image. Choose hardware (T4, L4, A100, H200),
* env/secrets, and on-demand hf:// FUSE volumes (~50-100 MB/s per job across many files; repos are
* ro, buckets default rw; shard large scans across parallel jobs with waitSeconds=0, and use
* large/concurrent reads). Logs retain only the last 80 KB (4,000 chars/line); write larger
* results to a mounted rw bucket (or upload to a repo with forwardHfToken=true). Paid compute. See
* hf_job_logs.
*/
declare function hf_job_run(args: {
// Python code for uv, a URL or a .py path in the image. Not with command.
script?: string;
// Extra pip packages for script (uv --with).
dependencies?: string[];
// Python version for script, e.g. "3.12".
python?: string;
// Arguments passed to script.
scriptArgs?: string[];
// argv, no shell, e.g. ["/bin/sh", "-lc", "cmd | cmd"]. Not with script.
command?: string[] | string;
// Docker image (default python:3.12 for command, a uv image for script).
image?: string;
// Use the Docker image of this Space instead of image.
space?: string;
// Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h200. @default "cpu-basic"
flavor?: string;
// Maximum run time: "30m", "2h", "90s" or seconds. @default "30m"
timeout?: string | number;
// Environment variables (values never echoed).
env?: Record<string, string>;
// Secret env variables (never echoed). "$HF_TOKEN" needs forwardHfToken.
secrets?: Record<string, string>;
// Pass your token to the job as secret HF_TOKEN; enables "$HF_TOKEN" in secrets. @default false
forwardHfToken?: boolean;
// FUSE (~80 MB/s; repos ro, buckets rw): "hf://datasets/o/d[@rev][/p]:/data:ro".
volumes?: string[];
// Labels (keys/values: max 100 chars, letters, digits, - and _).
labels?: Record<string, string>;
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
// Enterprise resource group for billing (needs namespace).
resourceGroupId?: string;
// Follow logs N sec (0: return at once for parallel launch; max 120, 100 lines). @default 0
waitSeconds?: number;
}): Promise<{
job: { kind: "job"; id: string; namespace: string; url: string; endpoint?: string; createdAt: string; finishedAt?: string; dockerImage?: string; spaceId?: string; command?: string[]; arguments?: string[]; environmentVariableNames: string[]; secretNames: string[]; flavor: string; status: { stage: string; message?: string | null; exposeUrls?: string[]; }; owner: string; createdBy?: string; tags?: string[]; labels?: Record<string, string>; timeoutSeconds?: number; };
logs?: { lines: string[]; finished: boolean; followStopped: boolean; linesTruncated: boolean; };
note?: string;
}>;input schema{
"type": "object",
"properties": {
"script": {
"description": "Python code for uv, a URL or a .py path in the image. Not with command.",
"type": "string"
},
"dependencies": {
"description": "Extra pip packages for script (uv --with).",
"type": "array",
"items": {
"type": "string"
}
},
"python": {
"description": "Python version for script, e.g. \"3.12\".",
"type": "string"
},
"scriptArgs": {
"description": "Arguments passed to script.",
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"description": "argv, no shell, e.g. [\"/bin/sh\", \"-lc\", \"cmd | cmd\"]. Not with script.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"image": {
"description": "Docker image (default python:3.12 for command, a uv image for script).",
"type": "string"
},
"space": {
"description": "Use the Docker image of this Space instead of image.",
"type": "string"
},
"flavor": {
"default": "cpu-basic",
"description": "Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h200.",
"type": "string"
},
"timeout": {
"default": "30m",
"description": "Maximum run time: \"30m\", \"2h\", \"90s\" or seconds.",
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"env": {
"description": "Environment variables (values never echoed).",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"secrets": {
"description": "Secret env variables (never echoed). \"$HF_TOKEN\" needs forwardHfToken.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"forwardHfToken": {
"default": false,
"description": "Pass your token to the job as secret HF_TOKEN; enables \"$HF_TOKEN\" in secrets.",
"type": "boolean"
},
"volumes": {
"description": "FUSE (~80 MB/s; repos ro, buckets rw): \"hf://datasets/o/d[@rev][/p]:/data:ro\".",
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"description": "Labels (keys/values: max 100 chars, letters, digits, - and _).",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
},
"resourceGroupId": {
"description": "Enterprise resource group for billing (needs namespace).",
"type": "string"
},
"waitSeconds": {
"default": 0,
"description": "Follow logs N sec (0: return at once for parallel launch; max 120, 100 lines).",
"type": "integer"
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"finishedAt": {
"type": "string"
},
"dockerImage": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"arguments": {
"type": "array",
"items": {
"type": "string"
}
},
"environmentVariableNames": {
"type": "array",
"items": {
"type": "string"
}
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"flavor": {
"type": "string"
},
"status": {
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"message": {
"type": [
"string",
"null"
]
},
"exposeUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stage"
]
},
"owner": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"timeoutSeconds": {
"type": "number"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"createdAt",
"environmentVariableNames",
"secretNames",
"flavor",
"status",
"owner"
]
},
"logs": {
"type": "object",
"properties": {
"lines": {
"type": "array",
"items": {
"type": "string"
}
},
"finished": {
"type": "boolean"
},
"followStopped": {
"type": "boolean",
"description": "Time limit reached; the job may still be running."
},
"linesTruncated": {
"type": "boolean",
"description": "True if older lines were dropped (>tail or >80 KB) or any line exceeded 4,000 chars."
}
},
"required": [
"lines",
"finished",
"followStopped",
"linesTruncated"
]
},
"note": {
"type": "string"
}
},
"required": [
"job"
]
} | POST /api/jobs/{ns} |
hf_job_schedulecanManageJobsAndSandboxesdestructive replaces hf_jobs | async def hf_job_schedule(
*,
schedule: str,
script: str | None = None,
dependencies: list[str] | None = None,
python: str | None = None,
scriptArgs: list[str] | None = None,
command: list[str] | str | None = None,
image: str | None = None,
space: str | None = None,
flavor: str = "cpu-basic",
timeout: str | int = "30m",
env: dict[str, str] | None = None,
secrets: dict[str, str] | None = None,
forwardHfToken: bool = False,
volumes: list[str] | None = None,
labels: dict[str, str] | None = None,
namespace: str | None = None,
resourceGroupId: str | None = None,
suspend: bool = False,
concurrency: bool = False,
) -> dict[str, Any]:
"""Schedule a recurring job (cron task, periodic run) with a cron expression or hourly, daily or
weekly shorthand. Use a Python script with uv dependencies or a Docker/Space command; optionally
create the schedule suspended or allow overlapping runs. Each run consumes paid compute. See
hf_job_run.
Args:
schedule: Cron expression ("0 9 * * 1") or @hourly, @daily, @weekly, @monthly, @yearly.
script: Python code for uv, a URL or a .py path in the image. Not with command.
dependencies: Extra pip packages for script (uv --with).
python: Python version for script, e.g. "3.12".
scriptArgs: Arguments passed to script.
command: argv, no shell, e.g. ["/bin/sh", "-lc", "cmd | cmd"]. Not with script.
image: Docker image (default python:3.12 for command, a uv image for script).
space: Use the Docker image of this Space instead of image.
flavor: Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h200.
timeout: Maximum run time: "30m", "2h", "90s" or seconds.
env: Environment variables (values never echoed).
secrets: Secret env variables (never echoed). "$HF_TOKEN" needs forwardHfToken.
forwardHfToken: Pass your token to the job as secret HF_TOKEN; enables "$HF_TOKEN" in secrets.
volumes: FUSE (~80 MB/s; repos ro, buckets rw): "hf://datasets/o/d[@rev][/p]:/data:ro".
labels: Labels (keys/values: max 100 chars, letters, digits, - and _).
namespace: User or org owning the jobs (name or profile uri; default: you).
resourceGroupId: Enterprise resource group for billing (needs namespace).
suspend: Create suspended (no runs until resumed).
concurrency: Allow a new run while the previous one is still running.
Returns: {
scheduledJob: {kind: Literal["scheduled_job"], id: str, namespace: str, schedule: str, suspended: bool, lastRunAt: str, nextRunAt: str, owner: str, createdAt: str, concurrency: bool, jobSpec: dict[str, Any]},
}
"""
.../**
* Schedule a recurring job (cron task, periodic run) with a cron expression or hourly, daily or
* weekly shorthand. Use a Python script with uv dependencies or a Docker/Space command; optionally
* create the schedule suspended or allow overlapping runs. Each run consumes paid compute. See
* hf_job_run.
*/
declare function hf_job_schedule(args: {
// Cron expression ("0 9 * * 1") or @hourly, @daily, @weekly, @monthly, @yearly.
schedule: string;
// Python code for uv, a URL or a .py path in the image. Not with command.
script?: string;
// Extra pip packages for script (uv --with).
dependencies?: string[];
// Python version for script, e.g. "3.12".
python?: string;
// Arguments passed to script.
scriptArgs?: string[];
// argv, no shell, e.g. ["/bin/sh", "-lc", "cmd | cmd"]. Not with script.
command?: string[] | string;
// Docker image (default python:3.12 for command, a uv image for script).
image?: string;
// Use the Docker image of this Space instead of image.
space?: string;
// Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h200. @default "cpu-basic"
flavor?: string;
// Maximum run time: "30m", "2h", "90s" or seconds. @default "30m"
timeout?: string | number;
// Environment variables (values never echoed).
env?: Record<string, string>;
// Secret env variables (never echoed). "$HF_TOKEN" needs forwardHfToken.
secrets?: Record<string, string>;
// Pass your token to the job as secret HF_TOKEN; enables "$HF_TOKEN" in secrets. @default false
forwardHfToken?: boolean;
// FUSE (~80 MB/s; repos ro, buckets rw): "hf://datasets/o/d[@rev][/p]:/data:ro".
volumes?: string[];
// Labels (keys/values: max 100 chars, letters, digits, - and _).
labels?: Record<string, string>;
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
// Enterprise resource group for billing (needs namespace).
resourceGroupId?: string;
// Create suspended (no runs until resumed). @default false
suspend?: boolean;
// Allow a new run while the previous one is still running. @default false
concurrency?: boolean;
}): Promise<{
scheduledJob: { kind: "scheduled_job"; id: string; namespace: string; schedule: string; suspended: boolean; lastRunAt?: string; nextRunAt?: string; owner: string; createdAt: string; concurrency?: boolean; jobSpec: Record<string, unknown>; };
}>;input schema{
"type": "object",
"properties": {
"schedule": {
"type": "string",
"description": "Cron expression (\"0 9 * * 1\") or @hourly, @daily, @weekly, @monthly, @yearly."
},
"script": {
"description": "Python code for uv, a URL or a .py path in the image. Not with command.",
"type": "string"
},
"dependencies": {
"description": "Extra pip packages for script (uv --with).",
"type": "array",
"items": {
"type": "string"
}
},
"python": {
"description": "Python version for script, e.g. \"3.12\".",
"type": "string"
},
"scriptArgs": {
"description": "Arguments passed to script.",
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"description": "argv, no shell, e.g. [\"/bin/sh\", \"-lc\", \"cmd | cmd\"]. Not with script.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"image": {
"description": "Docker image (default python:3.12 for command, a uv image for script).",
"type": "string"
},
"space": {
"description": "Use the Docker image of this Space instead of image.",
"type": "string"
},
"flavor": {
"default": "cpu-basic",
"description": "Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h200.",
"type": "string"
},
"timeout": {
"default": "30m",
"description": "Maximum run time: \"30m\", \"2h\", \"90s\" or seconds.",
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"env": {
"description": "Environment variables (values never echoed).",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"secrets": {
"description": "Secret env variables (never echoed). \"$HF_TOKEN\" needs forwardHfToken.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"forwardHfToken": {
"default": false,
"description": "Pass your token to the job as secret HF_TOKEN; enables \"$HF_TOKEN\" in secrets.",
"type": "boolean"
},
"volumes": {
"description": "FUSE (~80 MB/s; repos ro, buckets rw): \"hf://datasets/o/d[@rev][/p]:/data:ro\".",
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"description": "Labels (keys/values: max 100 chars, letters, digits, - and _).",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
},
"resourceGroupId": {
"description": "Enterprise resource group for billing (needs namespace).",
"type": "string"
},
"suspend": {
"default": false,
"description": "Create suspended (no runs until resumed).",
"type": "boolean"
},
"concurrency": {
"default": false,
"description": "Allow a new run while the previous one is still running.",
"type": "boolean"
}
},
"required": [
"schedule"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"scheduledJob": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "scheduled_job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"schedule": {
"type": "string"
},
"suspended": {
"type": "boolean"
},
"lastRunAt": {
"type": "string"
},
"nextRunAt": {
"type": "string"
},
"owner": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"concurrency": {
"type": "boolean"
},
"jobSpec": {
"type": "object"
}
},
"required": [
"kind",
"id",
"namespace",
"schedule",
"suspended",
"owner",
"createdAt",
"jobSpec"
]
}
},
"required": [
"scheduledJob"
]
} | POST /api/scheduled-jobs/{ns} (jobSpec identical to jobs) |
hf_jobs_listcanReadJobsread-only replaces hf_jobs | async def hf_jobs_list(
*,
kind: Literal["job", "scheduled_job", "scheduled"] = "job",
stagesAny: list[Literal["RUNNING", "SCHEDULING", "COMPLETED", "ERROR", "CANCELED", "DELETED"]] | None = None,
labels: dict[str, str] | None = None,
namespace: str | None = None,
limit: int = 20,
cursor: str | None | None = None,
) -> dict[str, Any]:
"""List Hugging Face Jobs (my runs, scheduled tasks, cron jobs) for a user or organization. Find
running, completed, failed or canceled runs by stage and labels, with cursor paging. Results
include job IDs, status, hardware and creation time, or recurring schedules with suspension and
last/next run details when available. See hf_job_get.
Args:
kind: Record kind: job (one run) or scheduled_job (recurring; scheduled works).
stagesAny: Only jobs in these stages (kind job only).
labels: Only jobs having all these labels.
namespace: User or org owning the jobs (name or profile uri; default: you).
limit: Page size (1-100, default 20).
cursor: nextCursor from a previous call.
Returns: {
items: list[{kind: Literal["job"], id: str, namespace: str, url: str, endpoint: str, createdAt: str, finishedAt: str, dockerImage: str, spaceId: str, command: list[str], arguments: list[str], environmentVariableNames: list[str], secretNames: list[str], flavor: str, status: dict[str, Any], owner: str, createdBy: str, tags: list[str], labels: dict[str, str], timeoutSeconds: float} | {kind: Literal["scheduled_job"], id: str, namespace: str, schedule: str, suspended: bool, lastRunAt: str, nextRunAt: str, owner: str, createdAt: str, concurrency: bool, jobSpec: dict[str, Any]}],
returnedCount: int,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, total: int},
}
"""
.../**
* List Hugging Face Jobs (my runs, scheduled tasks, cron jobs) for a user or organization. Find
* running, completed, failed or canceled runs by stage and labels, with cursor paging. Results
* include job IDs, status, hardware and creation time, or recurring schedules with suspension and
* last/next run details when available. See hf_job_get.
*/
declare function hf_jobs_list(args: {
// Record kind: job (one run) or scheduled_job (recurring; scheduled works). @default "job"
kind?: "job" | "scheduled_job" | "scheduled";
// Only jobs in these stages (kind job only).
stagesAny?: Array<"RUNNING" | "SCHEDULING" | "COMPLETED" | "ERROR" | "CANCELED" | "DELETED">;
// Only jobs having all these labels.
labels?: Record<string, string>;
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
// Page size (1-100, default 20). @default 20
limit?: number;
// nextCursor from a previous call.
cursor?: string | null;
}): Promise<{
items: Array<{ kind: "job"; id: string; namespace: string; url: string; endpoint?: string; createdAt: string; finishedAt?: string; dockerImage?: string; spaceId?: string; command?: string[]; arguments?: string[]; environmentVariableNames: string[]; secretNames: string[]; flavor: string; status: Record<string, unknown>; owner: string; createdBy?: string; tags?: string[]; labels?: Record<string, string>; timeoutSeconds?: number; } | { kind: "scheduled_job"; id: string; namespace: string; schedule: string; suspended: boolean; lastRunAt?: string; nextRunAt?: string; owner: string; createdAt: string; concurrency?: boolean; jobSpec: Record<string, unknown>; }>;
returnedCount: number;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; total?: number; };
}>;input schema{
"type": "object",
"properties": {
"kind": {
"description": "Record kind: job (one run) or scheduled_job (recurring; scheduled works).",
"default": "job",
"type": "string",
"enum": [
"job",
"scheduled_job",
"scheduled"
]
},
"stagesAny": {
"description": "Only jobs in these stages (kind job only).",
"type": "array",
"items": {
"type": "string",
"enum": [
"RUNNING",
"SCHEDULING",
"COMPLETED",
"ERROR",
"CANCELED",
"DELETED"
]
}
},
"labels": {
"description": "Only jobs having all these labels.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
},
"limit": {
"default": 20,
"description": "Page size (1-100, default 20).",
"type": "integer"
},
"cursor": {
"description": "nextCursor from a previous call.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"finishedAt": {
"type": "string"
},
"dockerImage": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"arguments": {
"type": "array",
"items": {
"type": "string"
}
},
"environmentVariableNames": {
"type": "array",
"items": {
"type": "string"
}
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"flavor": {
"type": "string"
},
"status": {
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"message": {
"type": [
"string",
"null"
]
},
"exposeUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stage"
]
},
"owner": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"timeoutSeconds": {
"type": "number"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"createdAt",
"environmentVariableNames",
"secretNames",
"flavor",
"status",
"owner"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "scheduled_job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"schedule": {
"type": "string"
},
"suspended": {
"type": "boolean"
},
"lastRunAt": {
"type": "string"
},
"nextRunAt": {
"type": "string"
},
"owner": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"concurrency": {
"type": "boolean"
},
"jobSpec": {
"type": "object"
}
},
"required": [
"kind",
"id",
"namespace",
"schedule",
"suspended",
"owner",
"createdAt",
"jobSpec"
]
}
]
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"total": {
"description": "Scheduled jobs matching the filters.",
"type": "integer"
}
},
"required": [
"hasMore"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | GET /api/jobs/{ns}GET /api/scheduled-jobs/{ns} |
hf_job_getcanReadJobsread-only replaces hf_jobs | async def hf_job_get(
*,
job: str,
kind: Literal["job", "scheduled_job", "scheduled"] = "job",
namespace: str | None = None,
) -> dict[str, Any]:
"""Check one job's status and configuration by ID or job page URL. Read its stage, status message,
hardware, command, labels and timing; for a scheduled job, inspect the cron schedule, suspension
and last/next run when available. Environment variables and secrets appear as names only. See
hf_job_logs.
Args:
job: Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
kind: Record kind: job (one run) or scheduled_job (recurring; scheduled works).
namespace: User or org owning the jobs (name or profile uri; default: you).
Returns: {
job: {kind: Literal["job"], id: str, namespace: str, url: str, endpoint: str, createdAt: str, finishedAt: str, dockerImage: str, spaceId: str, command: list[str], arguments: list[str], environmentVariableNames: list[str], secretNames: list[str], flavor: str, status: {stage: str, message: str | None, exposeUrls: list[str]}, owner: str, createdBy: str, tags: list[str], labels: dict[str, str], timeoutSeconds: float},
scheduledJob: {kind: Literal["scheduled_job"], id: str, namespace: str, schedule: str, suspended: bool, lastRunAt: str, nextRunAt: str, owner: str, createdAt: str, concurrency: bool, jobSpec: dict[str, Any]},
}
"""
.../**
* Check one job's status and configuration by ID or job page URL. Read its stage, status message,
* hardware, command, labels and timing; for a scheduled job, inspect the cron schedule, suspension
* and last/next run when available. Environment variables and secrets appear as names only. See
* hf_job_logs.
*/
declare function hf_job_get(args: {
// Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
job: string;
// Record kind: job (one run) or scheduled_job (recurring; scheduled works). @default "job"
kind?: "job" | "scheduled_job" | "scheduled";
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
}): Promise<{
job?: { kind: "job"; id: string; namespace: string; url: string; endpoint?: string; createdAt: string; finishedAt?: string; dockerImage?: string; spaceId?: string; command?: string[]; arguments?: string[]; environmentVariableNames: string[]; secretNames: string[]; flavor: string; status: { stage: string; message?: string | null; exposeUrls?: string[]; }; owner: string; createdBy?: string; tags?: string[]; labels?: Record<string, string>; timeoutSeconds?: number; };
scheduledJob?: { kind: "scheduled_job"; id: string; namespace: string; schedule: string; suspended: boolean; lastRunAt?: string; nextRunAt?: string; owner: string; createdAt: string; concurrency?: boolean; jobSpec: Record<string, unknown>; };
}>;input schema{
"type": "object",
"properties": {
"job": {
"type": "string",
"description": "Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL)."
},
"kind": {
"description": "Record kind: job (one run) or scheduled_job (recurring; scheduled works).",
"default": "job",
"type": "string",
"enum": [
"job",
"scheduled_job",
"scheduled"
]
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
}
},
"required": [
"job"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"finishedAt": {
"type": "string"
},
"dockerImage": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"arguments": {
"type": "array",
"items": {
"type": "string"
}
},
"environmentVariableNames": {
"type": "array",
"items": {
"type": "string"
}
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"flavor": {
"type": "string"
},
"status": {
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"message": {
"type": [
"string",
"null"
]
},
"exposeUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stage"
]
},
"owner": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"timeoutSeconds": {
"type": "number"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"createdAt",
"environmentVariableNames",
"secretNames",
"flavor",
"status",
"owner"
]
},
"scheduledJob": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "scheduled_job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"schedule": {
"type": "string"
},
"suspended": {
"type": "boolean"
},
"lastRunAt": {
"type": "string"
},
"nextRunAt": {
"type": "string"
},
"owner": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"concurrency": {
"type": "boolean"
},
"jobSpec": {
"type": "object"
}
},
"required": [
"kind",
"id",
"namespace",
"schedule",
"suspended",
"owner",
"createdAt",
"jobSpec"
]
}
}
} | GET /api/jobs/{ns}/{id}GET /api/scheduled-jobs/{ns}/{id} |
hf_job_logscanReadJobsread-only replaces hf_jobs | async def hf_job_logs(
*,
job: str,
tail: int = 200,
followSeconds: int = 0,
namespace: str | None = None,
) -> dict[str, Any]:
"""Read Hugging Face job logs (stdout, stderr, console output) by job ID or page URL. Tail recent
lines or follow a running job within a bounded window: retains at most the last 80 KB total and
4,000 characters per line, with no forward offset or cursor once older lines are dropped. Format
structured stdout as lines under 4,000 chars totaling under ~65 KB, or write larger outputs to a
mounted rw bucket (or upload to a repo with forwardHfToken=true). Returns lines, count, finished
state, and followStopped/linesTruncated flags. See hf_job_get.
Args:
job: Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
tail: Last N lines (default 200, max 2000; capped at 80 KB total, 4,000 chars/line).
followSeconds: Seconds to keep reading a running job (0: what is available; max 120).
namespace: User or org owning the jobs (name or profile uri; default: you).
Returns: {
job: {kind: Literal["job"], id: str, namespace: str, url: str, stage: str},
lines: list[str],
finished: bool,
followStopped: bool, # Time limit reached; the job may still be running.
linesTruncated: bool, # True if older lines were dropped (>tail or >80 KB) or any line exceeded 4,000 chars.
returnedCount: int,
}
"""
.../**
* Read Hugging Face job logs (stdout, stderr, console output) by job ID or page URL. Tail recent
* lines or follow a running job within a bounded window: retains at most the last 80 KB total and
* 4,000 characters per line, with no forward offset or cursor once older lines are dropped. Format
* structured stdout as lines under 4,000 chars totaling under ~65 KB, or write larger outputs to a
* mounted rw bucket (or upload to a repo with forwardHfToken=true). Returns lines, count, finished
* state, and followStopped/linesTruncated flags. See hf_job_get.
*/
declare function hf_job_logs(args: {
// Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
job: string;
// Last N lines (default 200, max 2000; capped at 80 KB total, 4,000 chars/line). @default 200
tail?: number;
// Seconds to keep reading a running job (0: what is available; max 120). @default 0
followSeconds?: number;
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
}): Promise<{
job: { kind: "job"; id: string; namespace: string; url: string; stage: string; };
lines: string[];
finished: boolean;
// Time limit reached; the job may still be running.
followStopped: boolean;
// True if older lines were dropped (>tail or >80 KB) or any line exceeded 4,000 chars.
linesTruncated: boolean;
returnedCount: number;
}>;input schema{
"type": "object",
"properties": {
"job": {
"type": "string",
"description": "Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL)."
},
"tail": {
"default": 200,
"description": "Last N lines (default 200, max 2000; capped at 80 KB total, 4,000 chars/line).",
"type": "integer"
},
"followSeconds": {
"default": 0,
"description": "Seconds to keep reading a running job (0: what is available; max 120).",
"type": "integer"
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
}
},
"required": [
"job"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"stage": {
"type": "string"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"stage"
]
},
"lines": {
"type": "array",
"items": {
"type": "string"
}
},
"finished": {
"type": "boolean"
},
"followStopped": {
"type": "boolean",
"description": "Time limit reached; the job may still be running."
},
"linesTruncated": {
"type": "boolean",
"description": "True if older lines were dropped (>tail or >80 KB) or any line exceeded 4,000 chars."
},
"returnedCount": {
"type": "integer"
}
},
"required": [
"job",
"lines",
"finished",
"followStopped",
"linesTruncated",
"returnedCount"
]
} | GET /api/jobs/{ns}/{id}/logs (SSE) |
hf_job_cancelcanManageJobsAndSandboxesdestructive replaces hf_jobs | async def hf_job_cancel(
*,
job: str,
kind: Literal["job", "scheduled_job", "scheduled"] = "job",
namespace: str | None = None,
) -> dict[str, Any]:
"""Cancel a running or pending job, or delete a recurring job schedule, by ID or job page URL. This
stops the run or removes the schedule. Returns the cancellation or deletion action and the
corresponding job details. See hf_job_update.
Args:
job: Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
kind: Record kind: job (one run) or scheduled_job (recurring; scheduled works).
namespace: User or org owning the jobs (name or profile uri; default: you).
Returns: {
action: Literal["canceled", "deleted"],
job: {kind: Literal["job"], id: str, namespace: str, url: str, endpoint: str, createdAt: str, finishedAt: str, dockerImage: str, spaceId: str, command: list[str], arguments: list[str], environmentVariableNames: list[str], secretNames: list[str], flavor: str, status: {stage: str, message: str | None, exposeUrls: list[str]}, owner: str, createdBy: str, tags: list[str], labels: dict[str, str], timeoutSeconds: float},
scheduledJob: {kind: Literal["scheduled_job"], id: str, namespace: str},
note: str,
}
"""
.../**
* Cancel a running or pending job, or delete a recurring job schedule, by ID or job page URL. This
* stops the run or removes the schedule. Returns the cancellation or deletion action and the
* corresponding job details. See hf_job_update.
*/
declare function hf_job_cancel(args: {
// Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
job: string;
// Record kind: job (one run) or scheduled_job (recurring; scheduled works). @default "job"
kind?: "job" | "scheduled_job" | "scheduled";
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
}): Promise<{
action: "canceled" | "deleted";
job?: { kind: "job"; id: string; namespace: string; url: string; endpoint?: string; createdAt: string; finishedAt?: string; dockerImage?: string; spaceId?: string; command?: string[]; arguments?: string[]; environmentVariableNames: string[]; secretNames: string[]; flavor: string; status: { stage: string; message?: string | null; exposeUrls?: string[]; }; owner: string; createdBy?: string; tags?: string[]; labels?: Record<string, string>; timeoutSeconds?: number; };
scheduledJob?: { kind: "scheduled_job"; id: string; namespace: string; };
note?: string;
}>;input schema{
"type": "object",
"properties": {
"job": {
"type": "string",
"description": "Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL)."
},
"kind": {
"description": "Record kind: job (one run) or scheduled_job (recurring; scheduled works).",
"default": "job",
"type": "string",
"enum": [
"job",
"scheduled_job",
"scheduled"
]
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
}
},
"required": [
"job"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"canceled",
"deleted"
]
},
"job": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"finishedAt": {
"type": "string"
},
"dockerImage": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"arguments": {
"type": "array",
"items": {
"type": "string"
}
},
"environmentVariableNames": {
"type": "array",
"items": {
"type": "string"
}
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"flavor": {
"type": "string"
},
"status": {
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"message": {
"type": [
"string",
"null"
]
},
"exposeUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stage"
]
},
"owner": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"timeoutSeconds": {
"type": "number"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"createdAt",
"environmentVariableNames",
"secretNames",
"flavor",
"status",
"owner"
]
},
"scheduledJob": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "scheduled_job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
}
},
"required": [
"kind",
"id",
"namespace"
]
},
"note": {
"type": "string"
}
},
"required": [
"action"
]
} | POST /api/jobs/{ns}/{id}/cancelDELETE /api/scheduled-jobs/{ns}/{id} |
hf_job_updatecanManageJobsAndSandboxesdestructive replaces hf_jobs | async def hf_job_update(
*,
job: str,
kind: Literal["job", "scheduled_job", "scheduled"] = "job",
labels: dict[str, str] | None = None,
action: Literal["suspend", "resume", "run_now"] | None = None,
schedule: str | None = None,
namespace: str | None = None,
) -> dict[str, Any]:
"""Replace or clear a job's labels by ID, or modify a recurring schedule: suspend (pause), resume,
change its cron timing or trigger a run now. Triggering a run consumes paid compute. Returns the
updated job or schedule and, for an immediate trigger, the started run. See hf_job_cancel.
Args:
job: Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
kind: Record kind: job (one run) or scheduled_job (recurring; scheduled works).
labels: Replace all labels ({} clears them).
action: Scheduled jobs only: pause, resume, or trigger one run now (billed like a run).
schedule: Scheduled jobs only: new cron expression or @hourly/@daily/...
namespace: User or org owning the jobs (name or profile uri; default: you).
Returns: {
job: {kind: Literal["job"], id: str, namespace: str, url: str, endpoint: str, createdAt: str, finishedAt: str, dockerImage: str, spaceId: str, command: list[str], arguments: list[str], environmentVariableNames: list[str], secretNames: list[str], flavor: str, status: {stage: str, message: str | None, exposeUrls: list[str]}, owner: str, createdBy: str, tags: list[str], labels: dict[str, str], timeoutSeconds: float},
scheduledJob: {kind: Literal["scheduled_job"], id: str, namespace: str, schedule: str, suspended: bool, lastRunAt: str, nextRunAt: str, owner: str, createdAt: str, concurrency: bool, jobSpec: dict[str, Any]},
triggeredJob: {kind: Literal["job"], id: str, namespace: str, url: str, endpoint: str, createdAt: str, finishedAt: str, dockerImage: str, spaceId: str, command: list[str], arguments: list[str], environmentVariableNames: list[str], secretNames: list[str], flavor: str, status: {stage: str, message: str | None, exposeUrls: list[str]}, owner: str, createdBy: str, tags: list[str], labels: dict[str, str], timeoutSeconds: float},
note: str,
}
"""
.../**
* Replace or clear a job's labels by ID, or modify a recurring schedule: suspend (pause), resume,
* change its cron timing or trigger a run now. Triggering a run consumes paid compute. Returns the
* updated job or schedule and, for an immediate trigger, the started run. See hf_job_cancel.
*/
declare function hf_job_update(args: {
// Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL).
job: string;
// Record kind: job (one run) or scheduled_job (recurring; scheduled works). @default "job"
kind?: "job" | "scheduled_job" | "scheduled";
// Replace all labels ({} clears them).
labels?: Record<string, string>;
// Scheduled jobs only: pause, resume, or trigger one run now (billed like a run).
action?: "suspend" | "resume" | "run_now";
// Scheduled jobs only: new cron expression or @hourly/@daily/...
schedule?: string;
// User or org owning the jobs (name or profile uri; default: you).
namespace?: string;
}): Promise<{
job?: { kind: "job"; id: string; namespace: string; url: string; endpoint?: string; createdAt: string; finishedAt?: string; dockerImage?: string; spaceId?: string; command?: string[]; arguments?: string[]; environmentVariableNames: string[]; secretNames: string[]; flavor: string; status: { stage: string; message?: string | null; exposeUrls?: string[]; }; owner: string; createdBy?: string; tags?: string[]; labels?: Record<string, string>; timeoutSeconds?: number; };
scheduledJob?: { kind: "scheduled_job"; id: string; namespace: string; schedule: string; suspended: boolean; lastRunAt?: string; nextRunAt?: string; owner: string; createdAt: string; concurrency?: boolean; jobSpec: Record<string, unknown>; };
triggeredJob?: { kind: "job"; id: string; namespace: string; url: string; endpoint?: string; createdAt: string; finishedAt?: string; dockerImage?: string; spaceId?: string; command?: string[]; arguments?: string[]; environmentVariableNames: string[]; secretNames: string[]; flavor: string; status: { stage: string; message?: string | null; exposeUrls?: string[]; }; owner: string; createdBy?: string; tags?: string[]; labels?: Record<string, string>; timeoutSeconds?: number; };
note?: string;
}>;input schema{
"type": "object",
"properties": {
"job": {
"type": "string",
"description": "Job ID as returned by hf_job_run/hf_jobs_list (or the job page URL)."
},
"kind": {
"description": "Record kind: job (one run) or scheduled_job (recurring; scheduled works).",
"default": "job",
"type": "string",
"enum": [
"job",
"scheduled_job",
"scheduled"
]
},
"labels": {
"description": "Replace all labels ({} clears them).",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"action": {
"description": "Scheduled jobs only: pause, resume, or trigger one run now (billed like a run).",
"type": "string",
"enum": [
"suspend",
"resume",
"run_now"
]
},
"schedule": {
"description": "Scheduled jobs only: new cron expression or @hourly/@daily/...",
"type": "string"
},
"namespace": {
"description": "User or org owning the jobs (name or profile uri; default: you).",
"type": "string"
}
},
"required": [
"job"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"finishedAt": {
"type": "string"
},
"dockerImage": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"arguments": {
"type": "array",
"items": {
"type": "string"
}
},
"environmentVariableNames": {
"type": "array",
"items": {
"type": "string"
}
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"flavor": {
"type": "string"
},
"status": {
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"message": {
"type": [
"string",
"null"
]
},
"exposeUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stage"
]
},
"owner": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"timeoutSeconds": {
"type": "number"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"createdAt",
"environmentVariableNames",
"secretNames",
"flavor",
"status",
"owner"
]
},
"scheduledJob": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "scheduled_job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"schedule": {
"type": "string"
},
"suspended": {
"type": "boolean"
},
"lastRunAt": {
"type": "string"
},
"nextRunAt": {
"type": "string"
},
"owner": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"concurrency": {
"type": "boolean"
},
"jobSpec": {
"type": "object"
}
},
"required": [
"kind",
"id",
"namespace",
"schedule",
"suspended",
"owner",
"createdAt",
"jobSpec"
]
},
"triggeredJob": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "job"
},
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"url": {
"type": "string"
},
"endpoint": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"finishedAt": {
"type": "string"
},
"dockerImage": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"arguments": {
"type": "array",
"items": {
"type": "string"
}
},
"environmentVariableNames": {
"type": "array",
"items": {
"type": "string"
}
},
"secretNames": {
"type": "array",
"items": {
"type": "string"
}
},
"flavor": {
"type": "string"
},
"status": {
"type": "object",
"properties": {
"stage": {
"type": "string"
},
"message": {
"type": [
"string",
"null"
]
},
"exposeUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"stage"
]
},
"owner": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"timeoutSeconds": {
"type": "number"
}
},
"required": [
"kind",
"id",
"namespace",
"url",
"createdAt",
"environmentVariableNames",
"secretNames",
"flavor",
"status",
"owner"
]
},
"note": {
"type": "string"
}
}
} | PUT …/labelsPOST /api/scheduled-jobs/{ns}/{id}/{suspend,resume,run,schedule} |
Sandboxes (7)
| Tool | Definition | Endpoints |
|---|---|---|
hf_sandbox_createcanManageJobsAndSandboxesdestructive replaces hf_sandbox | async def hf_sandbox_create(
*,
image: str = "python:3.12",
flavor: str = "cpu-basic",
lifetime: str = "1h",
name: str | None = None,
namespace: str | None = None,
volumes: list[str] | None = None,
bucket: str | None = None,
forwardHfToken: bool = False,
resourceGroupId: str | None = None,
) -> dict[str, Any]:
"""Sandbox: Create a Hugging Face sandbox (cloud shell, dev container) on CPU or GPU hardware.
Choose a Docker image, idle lifetime and optional volume mounts. Returns a sandbox handle and
readiness flag. Consumes paid compute billed to the owning user or organization while running.
Args:
image: Docker image, e.g. python:3.12 or pytorch/pytorch:latest.
flavor: Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h100.
lifetime: Idle lifetime, e.g. 30m or 2h (max 24h; billed while running).
name: Friendly name (1-63 letters, digits, hyphens). Generated when omitted.
namespace: User or org that owns and pays (name or profile uri; default: you).
volumes: FUSE mounts (repos ro, buckets rw): "hf://datasets/o/d[@rev][/dir]:/mnt:ro".
bucket: Bucket uri (hf_buckets_list items[].uri) to mount read-write at /data.
forwardHfToken: Expose your token in the sandbox as the HF_TOKEN secret.
resourceGroupId: Organization resource group to run in; requires namespace.
Returns: {
kind: Literal["sandbox"],
id: str, # Pass as sandbox to the hf_sandbox_* tools.
url: str,
namespace: str,
jobId: str,
name: str,
serverUrl: str, # Needs the sandbox token: use the hf_sandbox_* tools.
volumes: list[{kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str, mountPath: str, readOnly: bool, path: str | None, revision: str | None}],
ready: bool, # False if still starting after ~10 s: check hf_sandbox_status.
hfTokenForwarded: bool,
}
"""
.../**
* Sandbox: Create a Hugging Face sandbox (cloud shell, dev container) on CPU or GPU hardware.
* Choose a Docker image, idle lifetime and optional volume mounts. Returns a sandbox handle and
* readiness flag. Consumes paid compute billed to the owning user or organization while running.
*/
declare function hf_sandbox_create(args: {
// Docker image, e.g. python:3.12 or pytorch/pytorch:latest. @default "python:3.12"
image?: string;
// Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h100. @default "cpu-basic"
flavor?: string;
// Idle lifetime, e.g. 30m or 2h (max 24h; billed while running). @default "1h"
lifetime?: string;
// Friendly name (1-63 letters, digits, hyphens). Generated when omitted.
name?: string;
// User or org that owns and pays (name or profile uri; default: you).
namespace?: string;
// FUSE mounts (repos ro, buckets rw): "hf://datasets/o/d[@rev][/dir]:/mnt:ro".
volumes?: string[];
// Bucket uri (hf_buckets_list items[].uri) to mount read-write at /data.
bucket?: string;
// Expose your token in the sandbox as the HF_TOKEN secret. @default false
forwardHfToken?: boolean;
// Organization resource group to run in; requires namespace.
resourceGroupId?: string;
}): Promise<{
kind: "sandbox";
// Pass as sandbox to the hf_sandbox_* tools.
id: string;
url: string;
namespace: string;
jobId: string;
name: string;
// Needs the sandbox token: use the hf_sandbox_* tools.
serverUrl: string;
volumes: Array<{ kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; mountPath: string; readOnly: boolean; path: string | null; revision: string | null; }>;
// False if still starting after ~10 s: check hf_sandbox_status.
ready: boolean;
hfTokenForwarded: boolean;
}>;input schema{
"type": "object",
"properties": {
"image": {
"default": "python:3.12",
"description": "Docker image, e.g. python:3.12 or pytorch/pytorch:latest.",
"type": "string"
},
"flavor": {
"default": "cpu-basic",
"description": "Flavor (hf_hardware_flavors items[].id), e.g. cpu-basic, t4-small, h100.",
"type": "string"
},
"lifetime": {
"default": "1h",
"description": "Idle lifetime, e.g. 30m or 2h (max 24h; billed while running).",
"type": "string"
},
"name": {
"description": "Friendly name (1-63 letters, digits, hyphens). Generated when omitted.",
"type": "string"
},
"namespace": {
"description": "User or org that owns and pays (name or profile uri; default: you).",
"type": "string"
},
"volumes": {
"description": "FUSE mounts (repos ro, buckets rw): \"hf://datasets/o/d[@rev][/dir]:/mnt:ro\".",
"type": "array",
"items": {
"type": "string"
}
},
"bucket": {
"description": "Bucket uri (hf_buckets_list items[].uri) to mount read-write at /data.",
"type": "string"
},
"forwardHfToken": {
"default": false,
"description": "Expose your token in the sandbox as the HF_TOKEN secret.",
"type": "boolean"
},
"resourceGroupId": {
"description": "Organization resource group to run in; requires namespace.",
"type": "string"
}
},
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "sandbox"
},
"id": {
"type": "string",
"description": "Pass as sandbox to the hf_sandbox_* tools."
},
"url": {
"type": "string"
},
"namespace": {
"type": "string"
},
"jobId": {
"type": "string"
},
"name": {
"type": "string"
},
"serverUrl": {
"type": "string",
"description": "Needs the sandbox token: use the hf_sandbox_* tools."
},
"volumes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"mountPath": {
"type": "string"
},
"readOnly": {
"type": "boolean"
},
"path": {
"type": [
"string",
"null"
]
},
"revision": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind",
"id",
"uri",
"url",
"mountPath",
"readOnly",
"path",
"revision"
]
}
},
"ready": {
"type": "boolean",
"description": "False if still starting after ~10 s: check hf_sandbox_status."
},
"hfTokenForwarded": {
"type": "boolean"
}
},
"required": [
"kind",
"id",
"url",
"namespace",
"jobId",
"name",
"serverUrl",
"volumes",
"ready",
"hfTokenForwarded"
]
} | POST /api/jobs/{ns} + PUT …/expose |
hf_sandbox_statuscanManageJobsAndSandboxesread-only replaces hf_sandbox | async def hf_sandbox_status(*, sandbox: str) -> dict[str, Any]:
"""Sandbox: Check Hugging Face sandbox status, server health and background processes by handle.
Returns job stage, hardware flavor, image, idle lifetime and volume mounts, plus detached
process IDs, tags, running states and exit codes when process listing is available.
Args:
sandbox: Sandbox handle from hf_sandbox_create (or a job id).
Returns: {
kind: Literal["sandbox"],
id: str, # Pass as sandbox to the hf_sandbox_* tools.
url: str,
namespace: str,
jobId: str,
name: str | None,
serverUrl: str,
stage: str,
stageMessage: str | None,
healthy: bool,
healthError: str | None,
flavor: str | None,
image: str | None,
createdAt: str | None,
idleLifetimeSeconds: float | None,
volumes: list[{kind: Literal["model", "dataset", "space", "bucket"], id: str, uri: str, url: str, mountPath: str, readOnly: bool, path: str | None, revision: str | None}],
processes: {items: list[dict[str, Any]], returnedCount: int, nextCursor: None, completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str, available: bool}}, # Detached processes only; items[].id goes to hf_sandbox_kill.
}
"""
.../**
* Sandbox: Check Hugging Face sandbox status, server health and background processes by handle.
* Returns job stage, hardware flavor, image, idle lifetime and volume mounts, plus detached
* process IDs, tags, running states and exit codes when process listing is available.
*/
declare function hf_sandbox_status(args: {
// Sandbox handle from hf_sandbox_create (or a job id).
sandbox: string;
}): Promise<{
kind: "sandbox";
// Pass as sandbox to the hf_sandbox_* tools.
id: string;
url: string;
namespace: string;
jobId: string;
name: string | null;
serverUrl: string;
stage: string;
stageMessage: string | null;
healthy: boolean;
healthError: string | null;
flavor: string | null;
image: string | null;
createdAt: string | null;
idleLifetimeSeconds: number | null;
volumes: Array<{ kind: "model" | "dataset" | "space" | "bucket"; id: string; uri: string; url: string; mountPath: string; readOnly: boolean; path: string | null; revision: string | null; }>;
// Detached processes only; items[].id goes to hf_sandbox_kill.
processes: { items: Record<string, unknown>[]; returnedCount: number; nextCursor: null; completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; available: boolean; }; };
}>;input schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "Sandbox handle from hf_sandbox_create (or a job id)."
}
},
"required": [
"sandbox"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "sandbox"
},
"id": {
"type": "string",
"description": "Pass as sandbox to the hf_sandbox_* tools."
},
"url": {
"type": "string"
},
"namespace": {
"type": "string"
},
"jobId": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"serverUrl": {
"type": "string"
},
"stage": {
"type": "string"
},
"stageMessage": {
"type": [
"string",
"null"
]
},
"healthy": {
"type": "boolean"
},
"healthError": {
"type": [
"string",
"null"
]
},
"flavor": {
"type": [
"string",
"null"
]
},
"image": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": [
"string",
"null"
]
},
"idleLifetimeSeconds": {
"type": [
"number",
"null"
]
},
"volumes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"model",
"dataset",
"space",
"bucket"
]
},
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"url": {
"type": "string"
},
"mountPath": {
"type": "string"
},
"readOnly": {
"type": "boolean"
},
"path": {
"type": [
"string",
"null"
]
},
"revision": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind",
"id",
"uri",
"url",
"mountPath",
"readOnly",
"path",
"revision"
]
}
},
"processes": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object"
}
},
"returnedCount": {
"type": "integer"
},
"nextCursor": {
"type": "null"
},
"completeness": {
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
},
"available": {
"type": "boolean"
}
},
"required": [
"hasMore",
"available"
]
}
},
"required": [
"items",
"returnedCount",
"nextCursor",
"completeness"
],
"description": "Detached processes only; items[].id goes to hf_sandbox_kill."
}
},
"required": [
"kind",
"id",
"url",
"namespace",
"jobId",
"name",
"serverUrl",
"stage",
"stageMessage",
"healthy",
"healthError",
"flavor",
"image",
"createdAt",
"idleLifetimeSeconds",
"volumes",
"processes"
]
} | GET /api/jobs/{ns}/{id}sbx-server health + processes |
hf_sandbox_terminatecanManageJobsAndSandboxesdestructive replaces hf_sandbox | async def hf_sandbox_terminate(*, sandbox: str) -> dict[str, Any]:
"""Sandbox: Stop and terminate a Hugging Face sandbox by its handle. Ends the sandbox and returns
termination confirmation, the sandbox ID, the underlying job ID and a link to its job page.
Args:
sandbox: Sandbox handle from hf_sandbox_create (or a job id).
Returns: {
kind: Literal["sandbox"],
id: str, # Pass as sandbox to the hf_sandbox_* tools.
url: str,
namespace: str,
jobId: str,
terminated: Literal[True],
}
"""
.../**
* Sandbox: Stop and terminate a Hugging Face sandbox by its handle. Ends the sandbox and returns
* termination confirmation, the sandbox ID, the underlying job ID and a link to its job page.
*/
declare function hf_sandbox_terminate(args: {
// Sandbox handle from hf_sandbox_create (or a job id).
sandbox: string;
}): Promise<{
kind: "sandbox";
// Pass as sandbox to the hf_sandbox_* tools.
id: string;
url: string;
namespace: string;
jobId: string;
terminated: true;
}>;input schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "Sandbox handle from hf_sandbox_create (or a job id)."
}
},
"required": [
"sandbox"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "sandbox"
},
"id": {
"type": "string",
"description": "Pass as sandbox to the hf_sandbox_* tools."
},
"url": {
"type": "string"
},
"namespace": {
"type": "string"
},
"jobId": {
"type": "string"
},
"terminated": {
"type": "boolean",
"const": true
}
},
"required": [
"kind",
"id",
"url",
"namespace",
"jobId",
"terminated"
]
} | POST /api/jobs/{ns}/{id}/cancel |
hf_sandbox_execcanManageJobsAndSandboxesdestructive replaces hf_sandbox_exec | async def hf_sandbox_exec(
*,
sandbox: str,
command: str,
workdir: str | None = None,
env: dict[str, str] | None = None,
stdin: str | None = None,
timeout: int | None = None,
detach: bool = False,
tag: str | None = None,
) -> dict[str, Any]:
"""Sandbox: Run a shell command in an existing Hugging Face sandbox using /bin/sh, with pipes and
redirects. Returns exit code, stdout and stderr, or starts a background process and returns its
ID. Choose a working directory and command environment. Commands can modify or delete sandbox
data.
Args:
sandbox: Sandbox handle from hf_sandbox_create (or a job id).
command: Shell command, run with /bin/sh -lc (pipes, redirects and && work).
workdir: Absolute working directory inside the sandbox.
env: Extra environment variables for this command only (never echoed back).
stdin: Text written to the command stdin (never echoed back).
timeout: Seconds. Foreground: default 30, max 55. Detached: none unless set.
detach: Run in the background and return the process id at once.
tag: Label for a detached process (usable with hf_sandbox_kill).
Returns: {
sandbox: str,
detached: bool,
exitCode: int | None, # Null when killed by a signal, timed out, or detached.
signal: float | str | None,
timedOut: bool,
durationMs: float | None,
stdout: str, # Last 40000 characters.
stderr: str, # Last 40000 characters.
stdoutTruncated: bool,
stderrTruncated: bool,
process: {kind: Literal["process"], id: str, pid: int | None, tag: str | None, command: str | None, running: bool | None, exitCode: int | None, startedAt: str | None} | None, # When detached.
}
"""
.../**
* Sandbox: Run a shell command in an existing Hugging Face sandbox using /bin/sh, with pipes and
* redirects. Returns exit code, stdout and stderr, or starts a background process and returns its
* ID. Choose a working directory and command environment. Commands can modify or delete sandbox
* data.
*/
declare function hf_sandbox_exec(args: {
// Sandbox handle from hf_sandbox_create (or a job id).
sandbox: string;
// Shell command, run with /bin/sh -lc (pipes, redirects and && work).
command: string;
// Absolute working directory inside the sandbox.
workdir?: string;
// Extra environment variables for this command only (never echoed back).
env?: Record<string, string>;
// Text written to the command stdin (never echoed back).
stdin?: string;
// Seconds. Foreground: default 30, max 55. Detached: none unless set.
timeout?: number;
// Run in the background and return the process id at once. @default false
detach?: boolean;
// Label for a detached process (usable with hf_sandbox_kill).
tag?: string;
}): Promise<{
sandbox: string;
detached: boolean;
// Null when killed by a signal, timed out, or detached.
exitCode: number | null;
signal: number | string | null;
timedOut: boolean;
durationMs: number | null;
// Last 40000 characters.
stdout: string;
// Last 40000 characters.
stderr: string;
stdoutTruncated: boolean;
stderrTruncated: boolean;
// When detached.
process: { kind: "process"; id: string; pid: number | null; tag: string | null; command: string | null; running: boolean | null; exitCode: number | null; startedAt: string | null; } | null;
}>;input schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "Sandbox handle from hf_sandbox_create (or a job id)."
},
"command": {
"type": "string",
"description": "Shell command, run with /bin/sh -lc (pipes, redirects and && work)."
},
"workdir": {
"description": "Absolute working directory inside the sandbox.",
"type": "string"
},
"env": {
"description": "Extra environment variables for this command only (never echoed back).",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"stdin": {
"description": "Text written to the command stdin (never echoed back).",
"type": "string"
},
"timeout": {
"description": "Seconds. Foreground: default 30, max 55. Detached: none unless set.",
"type": "integer"
},
"detach": {
"default": false,
"description": "Run in the background and return the process id at once.",
"type": "boolean"
},
"tag": {
"description": "Label for a detached process (usable with hf_sandbox_kill).",
"type": "string"
}
},
"required": [
"sandbox",
"command"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string"
},
"detached": {
"type": "boolean"
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Null when killed by a signal, timed out, or detached."
},
"signal": {
"type": [
"number",
"string",
"null"
]
},
"timedOut": {
"type": "boolean"
},
"durationMs": {
"type": [
"number",
"null"
]
},
"stdout": {
"type": "string",
"description": "Last 40000 characters."
},
"stderr": {
"type": "string",
"description": "Last 40000 characters."
},
"stdoutTruncated": {
"type": "boolean"
},
"stderrTruncated": {
"type": "boolean"
},
"process": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "process"
},
"id": {
"type": "string",
"description": "Pass to hf_sandbox_kill."
},
"pid": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"tag": {
"type": [
"string",
"null"
]
},
"command": {
"description": "Preview: first 500 characters.",
"type": [
"string",
"null"
]
},
"running": {
"type": [
"boolean",
"null"
]
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"startedAt": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind",
"id",
"pid",
"tag",
"command",
"running",
"exitCode",
"startedAt"
]
},
{
"type": "null"
}
],
"description": "When detached."
}
},
"required": [
"sandbox",
"detached",
"exitCode",
"signal",
"timedOut",
"durationMs",
"stdout",
"stderr",
"stdoutTruncated",
"stderrTruncated",
"process"
]
} | sbx-server POST /v1/exec |
hf_sandbox_killcanManageJobsAndSandboxesdestructive replaces hf_sandbox | async def hf_sandbox_kill(*, sandbox: str, process: str) -> dict[str, Any]:
"""Sandbox: Kill a background process in a Hugging Face sandbox by process ID or tag. A tag stops
every matching process. Returns the killed process records and match method; the sandbox itself
keeps running.
Args:
sandbox: Sandbox handle from hf_sandbox_create (or a job id).
process: Process id from hf_sandbox_exec/status, or a tag (kills all matches).
Returns: {
sandbox: str,
matchedBy: Literal["id", "tag"],
killed: list[{kind: Literal["process"], id: str, pid: int | None, tag: str | None, command: str | None, running: bool | None, exitCode: int | None, startedAt: str | None}],
returnedCount: int,
}
"""
.../**
* Sandbox: Kill a background process in a Hugging Face sandbox by process ID or tag. A tag stops
* every matching process. Returns the killed process records and match method; the sandbox itself
* keeps running.
*/
declare function hf_sandbox_kill(args: {
// Sandbox handle from hf_sandbox_create (or a job id).
sandbox: string;
// Process id from hf_sandbox_exec/status, or a tag (kills all matches).
process: string;
}): Promise<{
sandbox: string;
matchedBy: "id" | "tag";
killed: Array<{ kind: "process"; id: string; pid: number | null; tag: string | null; command: string | null; running: boolean | null; exitCode: number | null; startedAt: string | null; }>;
returnedCount: number;
}>;input schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "Sandbox handle from hf_sandbox_create (or a job id)."
},
"process": {
"type": "string",
"description": "Process id from hf_sandbox_exec/status, or a tag (kills all matches)."
}
},
"required": [
"sandbox",
"process"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string"
},
"matchedBy": {
"type": "string",
"enum": [
"id",
"tag"
]
},
"killed": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "process"
},
"id": {
"type": "string",
"description": "Pass to hf_sandbox_kill."
},
"pid": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"tag": {
"type": [
"string",
"null"
]
},
"command": {
"description": "Preview: first 500 characters.",
"type": [
"string",
"null"
]
},
"running": {
"type": [
"boolean",
"null"
]
},
"exitCode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"startedAt": {
"type": [
"string",
"null"
]
}
},
"required": [
"kind",
"id",
"pid",
"tag",
"command",
"running",
"exitCode",
"startedAt"
]
}
},
"returnedCount": {
"type": "integer"
}
},
"required": [
"sandbox",
"matchedBy",
"killed",
"returnedCount"
]
} | sbx-server process kill |
hf_sandbox_fs_readcanManageJobsAndSandboxesread-only replaces hf_sandbox_fs | async def hf_sandbox_fs_read(
*,
sandbox: str,
path: str,
op: Literal["read", "list", "stat"] = "read",
offset: int | None = 0,
maxBytes: int = 20000,
encoding: Literal["text", "base64"] = "text",
cursor: str | None | None = None,
) -> dict[str, Any]:
"""Sandbox: Read a Hugging Face sandbox file, list a directory or inspect a path by absolute
sandbox path. Returns file bytes as UTF-8 text or base64, directory entries, or existence, type,
size and mode. File reads return a continuation offset for chunked access.
Args:
sandbox: Sandbox handle from hf_sandbox_create (or a job id).
path: Absolute POSIX path inside the sandbox, e.g. /tmp/out.txt (not an hf:// uri).
op: read: byte range; list: directory entries; stat: type, size, mode.
offset: read: byte offset to start from (use nextOffset).
maxBytes: read: bytes to return (max 80000).
encoding: read: text (UTF-8) or base64 for binary files.
cursor: list: nextCursor from a previous call with the same path.
Returns: {
sandbox: str,
op: Literal["read", "list", "stat"], # Fields not set by op are null. read: content..nextOffset (size: whole file); list: items; stat: exists, entry.
path: str,
exists: bool | None,
entry: {kind: Literal["file", "dir", "symlink"], id: str, name: str, size: float, lastModified: str | None, mode: str} | None,
content: str | None,
encoding: Literal["text", "base64"] | None,
offset: int | None,
bytes: int | None,
size: float | None,
nextOffset: int | None,
items: list[{kind: Literal["file", "dir", "symlink"], id: str, name: str, size: float, lastModified: str | None, mode: str}] | None,
returnedCount: int | None,
nextCursor: str | None,
completeness: {hasMore: bool, truncated: bool, reason: Literal["row_sort_cursor", "page_budget", "ranking_window", "owner_fanout_cap", "items_cap", "text_budget"], hint: str} | None,
}
"""
.../**
* Sandbox: Read a Hugging Face sandbox file, list a directory or inspect a path by absolute
* sandbox path. Returns file bytes as UTF-8 text or base64, directory entries, or existence, type,
* size and mode. File reads return a continuation offset for chunked access.
*/
declare function hf_sandbox_fs_read(args: {
// Sandbox handle from hf_sandbox_create (or a job id).
sandbox: string;
// Absolute POSIX path inside the sandbox, e.g. /tmp/out.txt (not an hf:// uri).
path: string;
// read: byte range; list: directory entries; stat: type, size, mode. @default "read"
op?: "read" | "list" | "stat";
// read: byte offset to start from (use nextOffset). @default 0
offset?: number | null;
// read: bytes to return (max 80000). @default 20000
maxBytes?: number;
// read: text (UTF-8) or base64 for binary files. @default "text"
encoding?: "text" | "base64";
// list: nextCursor from a previous call with the same path.
cursor?: string | null;
}): Promise<{
sandbox: string;
// Fields not set by op are null. read: content..nextOffset (size: whole file); list: items; stat: exists, entry.
op: "read" | "list" | "stat";
path: string;
exists: boolean | null;
entry: { kind: "file" | "dir" | "symlink"; id: string; name: string; size: number; lastModified: string | null; mode: string; } | null;
content: string | null;
encoding: "text" | "base64" | null;
offset: number | null;
bytes: number | null;
size: number | null;
nextOffset: number | null;
items: Array<{ kind: "file" | "dir" | "symlink"; id: string; name: string; size: number; lastModified: string | null; mode: string; }> | null;
returnedCount: number | null;
nextCursor: string | null;
completeness: { hasMore: boolean; truncated?: boolean; reason?: "row_sort_cursor" | "page_budget" | "ranking_window" | "owner_fanout_cap" | "items_cap" | "text_budget"; hint?: string; } | null;
}>;input schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "Sandbox handle from hf_sandbox_create (or a job id)."
},
"path": {
"type": "string",
"description": "Absolute POSIX path inside the sandbox, e.g. /tmp/out.txt (not an hf:// uri)."
},
"op": {
"default": "read",
"description": "read: byte range; list: directory entries; stat: type, size, mode.",
"type": "string",
"enum": [
"read",
"list",
"stat"
]
},
"offset": {
"default": 0,
"description": "read: byte offset to start from (use nextOffset).",
"type": [
"integer",
"null"
]
},
"maxBytes": {
"default": 20000,
"description": "read: bytes to return (max 80000).",
"type": "integer"
},
"encoding": {
"default": "text",
"description": "read: text (UTF-8) or base64 for binary files.",
"type": "string",
"enum": [
"text",
"base64"
]
},
"cursor": {
"description": "list: nextCursor from a previous call with the same path.",
"type": [
"string",
"null"
]
}
},
"required": [
"sandbox",
"path"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string"
},
"op": {
"type": "string",
"enum": [
"read",
"list",
"stat"
],
"description": "Fields not set by op are null. read: content..nextOffset (size: whole file); list: items; stat: exists, entry."
},
"path": {
"type": "string"
},
"exists": {
"type": [
"boolean",
"null"
]
},
"entry": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"file",
"dir",
"symlink"
]
},
"id": {
"type": "string",
"description": "Absolute path."
},
"name": {
"type": "string"
},
"size": {
"type": "number"
},
"lastModified": {
"type": [
"string",
"null"
]
},
"mode": {
"type": "string"
}
},
"required": [
"kind",
"id",
"name",
"size",
"lastModified",
"mode"
]
},
{
"type": "null"
}
]
},
"content": {
"type": [
"string",
"null"
]
},
"encoding": {
"anyOf": [
{
"type": "string",
"enum": [
"text",
"base64"
]
},
{
"type": "null"
}
]
},
"offset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"bytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"size": {
"type": [
"number",
"null"
]
},
"nextOffset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"items": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"file",
"dir",
"symlink"
]
},
"id": {
"type": "string",
"description": "Absolute path."
},
"name": {
"type": "string"
},
"size": {
"type": "number"
},
"lastModified": {
"type": [
"string",
"null"
]
},
"mode": {
"type": "string"
}
},
"required": [
"kind",
"id",
"name",
"size",
"lastModified",
"mode"
]
}
},
{
"type": "null"
}
]
},
"returnedCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"nextCursor": {
"type": [
"string",
"null"
]
},
"completeness": {
"anyOf": [
{
"type": "object",
"properties": {
"hasMore": {
"type": "boolean"
},
"truncated": {
"type": "boolean"
},
"reason": {
"type": "string",
"enum": [
"row_sort_cursor",
"page_budget",
"ranking_window",
"owner_fanout_cap",
"items_cap",
"text_budget"
]
},
"hint": {
"type": "string"
}
},
"required": [
"hasMore"
]
},
{
"type": "null"
}
]
}
},
"required": [
"sandbox",
"op",
"path",
"exists",
"entry",
"content",
"encoding",
"offset",
"bytes",
"size",
"nextOffset",
"items",
"returnedCount",
"nextCursor",
"completeness"
]
} | sbx-server fs ls/stat/read |
hf_sandbox_fs_writecanManageJobsAndSandboxesdestructive replaces hf_sandbox_fs | async def hf_sandbox_fs_write(
*,
sandbox: str,
path: str,
op: Literal["write", "remove", "mkdir"] = "write",
text: str | None = None,
base64: str | None = None,
recursive: bool = False,
) -> dict[str, Any]:
"""Sandbox: Write a Hugging Face sandbox file from text or base64 content at an absolute sandbox
path. Create or overwrite files, create directories, or delete files and recursively remove
directory contents. Overwrites replace existing file content. Returns completion and, for
writes, bytes written.
Args:
sandbox: Sandbox handle from hf_sandbox_create (or a job id).
path: Absolute POSIX path inside the sandbox, e.g. /tmp/out.txt (not an hf:// uri).
op: write: create/overwrite a file; remove: delete; mkdir: create a folder.
text: write: UTF-8 file content (exclusive with base64).
base64: write: base64 file content for binary files (exclusive with text).
recursive: remove: delete a directory and its contents.
Returns: {
sandbox: str,
op: Literal["write", "remove", "mkdir"],
path: str,
bytes: int | None,
done: Literal[True],
}
"""
.../**
* Sandbox: Write a Hugging Face sandbox file from text or base64 content at an absolute sandbox
* path. Create or overwrite files, create directories, or delete files and recursively remove
* directory contents. Overwrites replace existing file content. Returns completion and, for
* writes, bytes written.
*/
declare function hf_sandbox_fs_write(args: {
// Sandbox handle from hf_sandbox_create (or a job id).
sandbox: string;
// Absolute POSIX path inside the sandbox, e.g. /tmp/out.txt (not an hf:// uri).
path: string;
// write: create/overwrite a file; remove: delete; mkdir: create a folder. @default "write"
op?: "write" | "remove" | "mkdir";
// write: UTF-8 file content (exclusive with base64).
text?: string;
// write: base64 file content for binary files (exclusive with text).
base64?: string;
// remove: delete a directory and its contents. @default false
recursive?: boolean;
}): Promise<{
sandbox: string;
op: "write" | "remove" | "mkdir";
path: string;
bytes: number | null;
done: true;
}>;input schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "Sandbox handle from hf_sandbox_create (or a job id)."
},
"path": {
"type": "string",
"description": "Absolute POSIX path inside the sandbox, e.g. /tmp/out.txt (not an hf:// uri)."
},
"op": {
"default": "write",
"description": "write: create/overwrite a file; remove: delete; mkdir: create a folder.",
"type": "string",
"enum": [
"write",
"remove",
"mkdir"
]
},
"text": {
"description": "write: UTF-8 file content (exclusive with base64).",
"type": "string"
},
"base64": {
"description": "write: base64 file content for binary files (exclusive with text).",
"type": "string"
},
"recursive": {
"default": false,
"description": "remove: delete a directory and its contents.",
"type": "boolean"
}
},
"required": [
"sandbox",
"path"
],
"additionalProperties": false
}output schema{
"type": "object",
"properties": {
"sandbox": {
"type": "string"
},
"op": {
"type": "string",
"enum": [
"write",
"remove",
"mkdir"
]
},
"path": {
"type": "string"
},
"bytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"done": {
"type": "boolean",
"const": true
}
},
"required": [
"sandbox",
"op",
"path",
"bytes",
"done"
]
} | sbx-server fs write/rm/mkdir |
Benchmark prompts (339)
Routing benchmark: each prompt labelled with the legacy tools and the PTC tools that answer it. 332/334 Hub prompts covered, 2 partial; 5 non-Hub prompts are negatives.
Prompts per tool
Prompts per family
| # | split / turn | Prompt | Legacy tools | PTC tools | Coverage |
|---|---|---|---|---|---|
| 0 | dev initial | Create a new private model repository on Hugging Face | create_repo | hf_repo_create | covered |
| 1 | held-out initial | Show me today's daily papers | hf_fs | hf_daily_papers | covered |
| 2 | held-out initial | Preview the first rows of the squad dataset | hub_repo_details | hf_dataset_structure hf_dataset_rows | covered |
| 3 | dev initial | What configs and splits does the HuggingFaceFW/fineweb dataset have? | hub_repo_details | hf_dataset_structure | covered |
| 4 | dev initial | Show me the model card details for meta-llama/Llama-3.1-8B-Instruct | hf_fs hub_repo_details | hf_repo_info hf_repo_read_text | covered |
| 5 | held-out initial | Duplicate the Space black-forest-labs/FLUX.1-dev into my account | create_repo | hf_whoami hf_repo_create | covered |
| 6 | dev initial | How do I use the transformers pipeline API? Check the Hugging Face docs | hf_fs | hf_docs_search hf_docs_read | covered |
| 7 | dev initial | Run batch inference over a large dataset in the cloud | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 8 | dev initial | Show the logs for my running job and cancel it if it failed | hf_jobs | hf_jobs_list hf_job_logs hf_job_cancel | covered |
| 9 | held-out initial | Run a GPU training job on Hugging Face infrastructure | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 10 | dev initial | Create a new GitHub repository called demo-app | create_repository | none (non-Hub) | negative |
| 11 | dev initial | Look up the latest documentation for the React useEffect hook | query-docs resolve-library-id | none (non-Hub) | negative |
| 12 | dev initial | Read the contents of ./src/index.ts from my local project | read_file read_text_file | none (non-Hub) | negative |
| 13 | dev initial | Take a screenshot of the web page that is currently open | browser_take_screenshot | none (non-Hub) | negative |
| 14 | held-out initial | What time is it in Tokyo right now? | get_current_time | none (non-Hub) | negative |
| 15 | dev initial | Read the config.json file from the Qwen/Qwen3-8B model repo | hf_fs | hf_repo_read_text | covered |
| 16 | held-out initial | Search the Hub for Spanish sentiment analysis datasets | hf_fs hub_repo_search | hf_datasets_search | covered |
| 17 | dev initial | Which open-weights LLMs under 8B parameters are most downloaded? | hf_fs hub_repo_search | hf_models_search | covered |
| 18 | dev initial | Find Hugging Face models for text-to-speech | hf_fs hub_repo_search | hf_models_search | covered |
| 19 | dev initial | Find a demo that removes the background from a photo and run it | dynamic_space | hf_spaces_search hf_space_tools hf_space_invoke | covered |
| 20 | dev initial | Generate an image of a cat astronaut using a Space | dynamic_space | hf_spaces_search hf_space_tools hf_space_invoke | covered |
| 21 | dev initial | What are today's trending models on Hugging Face? | hf_fs | hf_trending | covered |
| 22 | held-out initial | Which Hugging Face account am I logged in as? | hf_whoami | hf_whoami | covered |
| 23 | dev initial | What organizations do I belong to on Hugging Face? | hf_whoami | hf_whoami | covered |
| 24 | held-out initial | Run this Python code remotely with the requests package: print(requests.get('https://huggingface.co').status_code) | hf_jobs | hf_job_run | covered |
| 25 | held-out initial | Run a Python job to print 'done'. Set the timeout to 300 seconds. | hf_jobs | hf_job_run | covered |
| 26 | dev initial | Run a GPU job on H100 that prints torch.cuda.get_device_name(). | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 27 | dev initial | Run this model inspection on H200 if possible: install transformers and print the config for Qwen/Qwen3-0.6B. | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 28 | held-out initial | Run a Docker job that does: pip install cadquery && python -c "import cadquery; print(cadquery.__version__)" | hf_jobs | hf_job_run | covered |
| 29 | dev initial | Run a job to grep recursively for FLASHINFER or VLLM_USE under /usr/local/lib/python3.12/dist-packages/vllm and show the first 120 matches. | hf_jobs | hf_job_run | covered |
| 30 | dev initial | Run a private Hub job that needs my HF token. Pass HF_TOKEN into the job and print HfApi().whoami(). | hf_jobs | hf_job_run | covered |
| 31 | dev initial | Mount the dataset perctrix/Stock-China-daily into /data read-only and inspect its files. | hf_jobs | hf_job_run | covered |
| 32 | held-out initial | Use HF Jobs uv to check that pandas can be installed. | hf_jobs | hf_job_run | covered |
| 33 | held-out initial | Run a quick remote Python check that prints the Python version and current platform. Use the lightweight CPU job path. | hf_jobs | hf_job_run | covered |
| 34 | held-out initial | Use a remote Python job to fetch https://huggingface.co/api/models/Qwen/Qwen3-0.6B with requests and print the model id and download count. | hf_jobs | hf_job_run | covered |
| 35 | dev initial | Use HF Jobs to sample the first row of the LARK-Lab/EnvFactory-SFT-ALL dataset and print the available fields. Install any needed Python dependency. | hf_jobs | hf_job_run | covered |
| 36 | dev initial | Run a remote Python script that lists files in the dataset zkaedi/meshy-prime-h0-v1 using huggingface_hub. | hf_jobs | hf_job_run | covered |
| 37 | dev initial | Use a remote Python job to read the UGI leaderboard CSV at https://huggingface.co/spaces/DontPlanToEnd/UGI-Leaderboard/resolve/main/ugi-leaderboard-data.csv and print columns plus any rows mentioning Qwen3.6. | hf_jobs | hf_job_run | covered |
| 38 | dev initial | Use a remote Python job to download an image from https://nutecdigital.com/wp-content/uploads/2024/05/NUtec-Digital-Ink-solar-roof-LR-scaled-1.jpg, resize it with Pillow, and print the resulting size. | hf_jobs | hf_job_run | covered |
| 39 | dev initial | Run a remote Python job that calls HfApi().whoami() using my Hugging Face token. Make sure the job receives HF_TOKEN securely. | hf_jobs | hf_job_run | covered |
| 40 | dev initial | Use HF Jobs to run a small GPU Python check that prints torch version, whether CUDA is available, and the GPU name. Use a valid small GPU flavor. | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 41 | dev initial | Start a Docker job using python:3.12 that prints hello from inside the container. | hf_jobs | hf_job_run | covered |
| 42 | dev initial | Run a container job that installs requests with pip, then uses Python to fetch https://httpbin.org/json and print the top-level keys. | hf_jobs | hf_job_run | covered |
| 43 | dev initial | Use a job to mount the dataset perctrix/Stock-China-daily at /data read-only, list /data, and print the sizes of any zip files found. | hf_jobs | hf_job_run | covered |
| 44 | dev initial | Run a Python 3.12 container job that installs git if needed, clones https://github.com/huggingface/huggingface_hub.git shallowly, and prints the latest commit hash. | hf_jobs | hf_job_run | covered |
| 45 | held-out initial | Launch a PyTorch CUDA container job on a valid T4 or A10G flavor that prints torch.cuda.is_available() and nvidia-smi output. | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 46 | dev initial | Run a job using the Space image hf.co/spaces/nvidia/Kimodo and execute a simple command that prints the working directory and Python version. | hf_jobs | hf_job_run | covered |
| 47 | held-out initial | Start a small Python job that prints the value of an environment variable TASK_NAME set to benchmark-smoke. Use cpu-basic. | hf_jobs | hf_job_run | covered |
| 48 | held-out initial | Use a remote UV job with polars and pyarrow to read a parquet URL placeholder PARQUET_URL_FROM_HUB_REPO_DETAILS and print shape and head. Use a one hour timeout. | hf_jobs | hf_dataset_structure hf_job_run | covered |
| 49 | dev initial | Run a remote Python job that calls the Open-Meteo archive API for Toulouse daily temperatures in 2025 and prints the first three returned dates. | hf_jobs | hf_job_run | covered |
| 50 | dev initial | Use HF Jobs to install transformers and print the config for Qwen/Qwen3-0.6B in a remote Python script. | hf_jobs | hf_job_run | covered |
| 51 | dev initial | Start a detached remote Python job that sleeps for 30 seconds, prints start and done, and use timeout 2 minutes. | hf_jobs | hf_job_run | covered |
| 52 | dev initial | Fetch the last 200 log lines for HF Job ID 6afd9aea545f95df1c062cd1. | hf_jobs | hf_job_logs | covered |
| 53 | dev initial | Inspect HF Job 6afd9aea545f95df1c062cd2 and summarize its status. | hf_jobs | hf_job_get | covered |
| 54 | dev initial | Find English parquet datasets for question answering | — | hf_datasets_search | covered |
| 55 | held-out initial | Find Spaces that are MCP servers | — | hf_spaces_list | covered |
| 56 | dev initial | Find text-generation models under 8B parameters sorted by downloads | — | hf_models_search | covered |
| 57 | held-out initial | Find recently updated models named Atlas, not semantic matches. | — | hf_models_search | covered |
| 58 | held-out initial | Find English parquet datasets; I need repository IDs, not rows. | — | hf_datasets_search | covered |
| 59 | dev initial | List the most-liked Spaces across the Hub, and continue the same listing. | — | hf_spaces_list | covered |
| 60 | dev initial | Find a demo that removes backgrounds from photos. | — | hf_spaces_search | covered |
| 61 | held-out initial | Discover models named bert, then find Spaces linked to those discovered model IDs. | — | hf_models_search hf_spaces_list | covered |
| 62 | dev initial | Fetch model and dataset result pages for bert in parallel, then identify owners occurring in both fetched pages. | — | hf_models_search hf_datasets_search | covered |
| 63 | dev initial | Continue the previous model query with this opaque next_cursor. | — | hf_models_search | covered |
| 64 | dev initial | Find demos for removing backgrounds through semantic search, then pick the most-liked item within those returned candidates. | — | hf_spaces_search | covered |
| 65 | dev initial | Locate compact pretrained text-generation weights with inference-provider support, and rank them by download popularity. | — | hf_models_search | covered |
| 66 | dev initial | Discover Spanish audio training-data repositories in Parquet with a permissive license. I only need repository identifiers. | — | hf_datasets_search | covered |
| 67 | dev initial | Which running Gradio apps link to google-bert/bert-base-uncased? Show most-liked first and let me continue the same results. | — | hf_spaces_list | covered |
| 68 | dev initial | Find an interactive AI demo that translates a voice recording into another language. | — | hf_spaces_search | covered |
| 69 | dev initial | Which Gradio Spaces have the most likes? | — | hf_spaces_list | covered |
| 70 | held-out initial | Find an AI app that can transcribe audio | — | hf_spaces_search | covered |
| 71 | dev initial | What are the trending models right now? | — | hf_trending hf_models_search | covered Trending feed (hf_trending) and sort=trendingScore (hf_models_search) are different orderings; the PTC label expected hf_models_search. |
| 72 | dev initial | Legal wants the actual terms: pull the DeepSeek-V2.5 model license and The Stack v2 (train-full-ids) dataset card. Can we use both for a commercial code assistant, and are there any use restrictions or opt-out obligations? | hf_fs hub_repo_details | hf_hub_lookup ★ hf_repo_info hf_repo_read_text | covered |
| 73 | dev followup | ok what about my jobs-artifacts bucket — list the run folders from the last week and what each one producedcontextI can't remember where I put the uv scripts I've been running as jobs. Look through my datasets for anything named like script / uv / jobs. | hf_fs | hf_repo_list_files hf_repo_read_text | covered |
| 74 | dev initial | I can't remember where I put the uv scripts I've been running as jobs. Look through my datasets for anything named like script / uv / jobs. | hf_fs hub_repo_search | hf_whoami hf_datasets_search | covered |
| 75 | held-out followup | that Mistral Large 4 1T-A52B thing — read me the model card. active params, context length, license, how big is the checkpoint?contextwhat's new today? papers of the day + what models are blowing up | hf_fs hub_repo_details | hf_hub_lookup ★ hf_repo_info hf_repo_read_text | covered |
| 76 | held-out followup | also nvidia put out a Nemotron transcribe model — what does its card claim on WER, and where's the open ASR leaderboard so I can compare?contextwhat's new today? papers of the day + what models are blowing up | hf_fs hub_repo_search | hf_models_search hf_repo_read_text hf_spaces_list | covered |
| 77 | held-out initial | what's new today? papers of the day + what models are blowing up | hf_fs | hf_daily_papers hf_trending | covered |
| 78 | held-out followup | someone's published Finnish GGUF fine-tunes (a 27B Swift, a mini, a 9B distill) — list their models and compare the cardscontextwhat Finnish data is there in MultiBLiMP, FineWeb-2 (fin_Latn) and the Wikipedia dump? I want to build a small eval for Finnish grammar | hf_fs hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 79 | held-out followup | which quant files are in the 9B AWQ one and the mini GGUF?contextwhat Finnish data is there in MultiBLiMP, FineWeb-2 (fin_Latn) and the Wikipedia dump? I want to build a small eval for Finnish grammar | hf_fs | hf_repo_list_files | covered |
| 80 | held-out initial | what Finnish data is there in MultiBLiMP, FineWeb-2 (fin_Latn) and the Wikipedia dump? I want to build a small eval for Finnish grammar | hf_fs hub_repo_details | hf_datasets_search hf_dataset_structure | covered |
| 81 | dev followup | what files are in the fixed SW checkpoint repo? I need the ckpt and the yaml configcontextThere are a bunch of ports of the BS-RoFormer SW 6-stem separator — ONNX, CoreML, MLX. Read their model cards and tell me which one I could realistically run on-device on a Mac or iPhone. | hf_fs | hf_repo_list_files | covered |
| 82 | dev initial | There are a bunch of ports of the BS-RoFormer SW 6-stem separator — ONNX, CoreML, MLX. Read their model cards and tell me which one I could realistically run on-device on a Mac or iPhone. | hf_fs hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 83 | dev followup | ok, open the replay-selection and shard manifest files they wrote under the _admin folder in my artifacts bucketcontextmy three CPU preflight runs should be finished by now — check whether they succeeded and what they logged | hf_fs | hf_repo_list_files hf_repo_read_text | covered |
| 84 | dev followup | looks good. kick off the decode step: python 3.12 on cpu-basic, 15 minute timeout, mount that bucket read-write at /derived and run the script from itcontextmy three CPU preflight runs should be finished by now — check whether they succeeded and what they logged | hf_jobs | hf_job_run | covered |
| 85 | dev initial | my three CPU preflight runs should be finished by now — check whether they succeeded and what they logged | hf_jobs | hf_jobs_list hf_job_logs | covered |
| 86 | dev initial | someone sent me TheBloke/finance-LLM-13B-GGUF, a finance finetune. what quant files are in there and what does the card say about how it was trained? | hf_fs hub_repo_details | hf_repo_list_files hf_repo_read_text | covered |
| 87 | held-out followup | there are two sd7k uploads, a v1 and one without suffix. list the files in both so I can see if they have the paired shadow/clean imagescontextneed training data for document shadow removal — is SD7K or RDD or the DocShadow set downloadable anywhere? | hf_fs | hf_datasets_search hf_repo_list_files | covered |
| 88 | held-out initial | need training data for document shadow removal — is SD7K or RDD or the DocShadow set downloadable anywhere? | hf_fs hub_repo_search | hf_datasets_search hf_repo_fulltext_search ★ | covered |
| 89 | dev initial | Did the YuE2 paper or the Unlimited OCR paper release any training data? find both and check for linked datasets | hf_fs | hf_papers_search hf_paper_get | covered |
| 90 | held-out followup | is there a 4-bit MLX build of Krea 2 I can run on my Mac? and does that Krea2 character LoRA repo actually contain .safetensors files?contextI'm picking a base for anime/illustration gen in ComfyUI. Compare Anima 2.9B, NewBie Image, Qwen-Image 2.1 and FLUX.2 klein 9B: what files do the Comfy-Org repackaged repos contain, and what do the licenses actually say about commercial use? | hf_fs | hf_models_search hf_repo_list_files | covered |
| 91 | held-out followup | what image models are trending right now? also anything new for Illustrious or NoobAIcontextI'm picking a base for anime/illustration gen in ComfyUI. Compare Anima 2.9B, NewBie Image, Qwen-Image 2.1 and FLUX.2 klein 9B: what files do the Comfy-Org repackaged repos contain, and what do the licenses actually say about commercial use? | hf_fs hub_repo_search | hf_trending hf_models_search | covered |
| 92 | held-out initial | I'm picking a base for anime/illustration gen in ComfyUI. Compare Anima 2.9B, NewBie Image, Qwen-Image 2.1 and FLUX.2 klein 9B: what files do the Comfy-Org repackaged repos contain, and what do the licenses actually say about commercial use? | hf_fs | hf_models_search hf_repo_list_files hf_repo_read_text | covered |
| 93 | dev followup | the moondream 1M synthetic analog clocks one — how big is it and what's the license?contextwant to teach a small VLM to read analog clocks, dial gauges and an abacus — any existing datasets or models for that? | hf_fs hub_repo_details | hf_datasets_search hf_repo_info | covered |
| 94 | dev initial | want to teach a small VLM to read analog clocks, dial gauges and an abacus — any existing datasets or models for that? | hf_fs hub_repo_search | hf_datasets_search hf_models_search hf_repo_fulltext_search ★ | covered |
| 95 | dev followup | are there any LoRA adapters people have trained on Qwen3.8-27B?contexthow big are the mmproj Q8_0 file in prism-ml/Ternary-Bonsai-2-27B-gguf and, in that abliterated Qwen3.8-27B GGUF, the mmproj plus the IQ2_XS and Q3_K_S MTP quants? trying to fit vision + speculative decoding on a 16GB card | hf_fs hub_repo_search | hf_models_search | covered |
| 96 | dev followup | someone made an MTP fork of Bonsai 2 27B with a Windows runtime — read their windows instructionscontexthow big are the mmproj Q8_0 file in prism-ml/Ternary-Bonsai-2-27B-gguf and, in that abliterated Qwen3.8-27B GGUF, the mmproj plus the IQ2_XS and Q3_K_S MTP quants? trying to fit vision + speculative decoding on a 16GB card | hf_fs | hf_models_search hf_repo_list_files hf_repo_read_text | covered |
| 97 | dev initial | how big are the mmproj Q8_0 file in prism-ml/Ternary-Bonsai-2-27B-gguf and, in that abliterated Qwen3.8-27B GGUF, the mmproj plus the IQ2_XS and Q3_K_S MTP quants? trying to fit vision + speculative decoding on a 16GB card | hf_fs | hf_models_search hf_repo_list_files | covered |
| 98 | dev followup | and what are the terms on the python-edu subset of smollm-corpus and on stack-edu?contextCodeI/O generated their traces with DeepSeek-V2.5 on python-edu. Read me DeepSeek-V2.5's LICENSE and model card — am I allowed to use its outputs to train another model? | hf_fs hub_repo_details | hf_repo_info hf_repo_read_text | covered |
| 99 | dev initial | CodeI/O generated their traces with DeepSeek-V2.5 on python-edu. Read me DeepSeek-V2.5's LICENSE and model card — am I allowed to use its outputs to train another model? | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 100 | held-out followup | the one with a format spec doc looks best — open the spec, the build script and a few sample records from the xlam partcontextHas anyone already merged glaive-function-calling, xlam-function-calling-60k and ToolACE into one unified tool-call format? Find those datasets and list what files each one has. | hf_fs | hf_repo_list_files hf_repo_read_text hf_dataset_rows | covered |
| 101 | held-out followup | show me 2 rows of the glaive tool-call train split so I can compare to the raw formatcontextHas anyone already merged glaive-function-calling, xlam-function-calling-60k and ToolACE into one unified tool-call format? Find those datasets and list what files each one has. | hf_fs hub_repo_details | hf_dataset_structure hf_dataset_rows | covered |
| 102 | held-out initial | Has anyone already merged glaive-function-calling, xlam-function-calling-60k and ToolACE into one unified tool-call format? Find those datasets and list what files each one has. | hf_fs hub_repo_search | hf_datasets_search hf_repo_fulltext_search ★ hf_repo_list_files | covered |
| 103 | dev followup | now find recent papers on phone GUI agents that escalate from a small on-device model to a cloud model, plus prompt-injection risks from notificationscontextdo the litert-community Gemma 4 E2B/E4B LiteRT-LM repos include Pixel Tensor-specific model files? also is there a FunctionGemma or EmbeddingGemma build packaged for on-device? | hf_fs | hf_papers_search | covered |
| 104 | dev initial | do the litert-community Gemma 4 E2B/E4B LiteRT-LM repos include Pixel Tensor-specific model files? also is there a FunctionGemma or EmbeddingGemma build packaged for on-device? | hf_fs hub_repo_search | hf_models_search hf_repo_list_files | covered |
| 105 | dev followup | ok now list the whole gzip-parts directorycontextIn my scraped-posts dataset, data/gzip-parts/article_index.jsonl ended up as a folder of chunks — list what's in it and print the first few KB of MANIFEST.txt. | hf_fs | hf_repo_list_files | covered |
| 106 | dev initial | In my scraped-posts dataset, data/gzip-parts/article_index.jsonl ended up as a folder of chunks — list what's in it and print the first few KB of MANIFEST.txt. | hf_fs | hf_whoami hf_repo_list_files hf_repo_read_text | covered |
| 107 | dev followup | same thing for the smaller shops: poolside, Tele-AI, miromind, maya-research — anything updated lately?contextBeen offline for two weeks. What did deepseek, moonshot (kimi), minimax, bytedance seed, BFL, wan, lightricks, stepfun, fish audio, ace-step, comfy and openai drop recently? just the newest 2 from each | hf_fs hub_repo_search | hf_models_search | covered |
| 108 | dev followup | and what's actually getting attention right now — top 40 models and the hot paperscontextBeen offline for two weeks. What did deepseek, moonshot (kimi), minimax, bytedance seed, BFL, wan, lightricks, stepfun, fish audio, ace-step, comfy and openai drop recently? just the newest 2 from each | hf_fs | hf_models_search hf_daily_papers | covered "top 40" exceeds the 20-item trending feed: hf_models_search sort=trendingScore limit=40. |
| 109 | dev initial | Been offline for two weeks. What did deepseek, moonshot (kimi), minimax, bytedance seed, BFL, wan, lightricks, stepfun, fish audio, ace-step, comfy and openai drop recently? just the newest 2 from each | hf_fs hub_repo_search | hf_models_search | covered |
| 110 | dev followup | the one with the asset_ctxs folder — what's the file naming/format in there and how far back does it go?contextI need historical hyperliquid funding rate / open interest data for a backtest. Anyone published a dump? Find candidates and show me what files are in each one. | hf_fs | hf_repo_list_files hf_repo_history ★ | covered |
| 111 | dev initial | I need historical hyperliquid funding rate / open interest data for a backtest. Anyone published a dump? Find candidates and show me what files are in each one. | hf_fs hub_repo_search | hf_datasets_search hf_repo_fulltext_search ★ hf_repo_list_files | covered |
| 112 | dev followup | the PLLuM card got cut off, read the rest of itcontextI've got a list of old leaderboard fine-tunes — a Gemma-2-9B merge, a Llama-3.1-8B GaLore guanaco tune, PLLuM-12B-chat, a few abliterated Japanese gemma-2-2b ORPO tunes, Atlas-Pro-1.5B-Preview. Go through each model card (and config where the card is thin) and tell me base model, training method and dataset for each. | hf_fs | hf_repo_read_text | covered |
| 113 | dev initial | I've got a list of old leaderboard fine-tunes — a Gemma-2-9B merge, a Llama-3.1-8B GaLore guanaco tune, PLLuM-12B-chat, a few abliterated Japanese gemma-2-2b ORPO tunes, Atlas-Pro-1.5B-Preview. Go through each model card (and config where the card is thin) and tell me base model, training method and dataset for each. | hf_fs hub_repo_details | hf_hub_lookup ★ hf_repo_info hf_repo_read_text | covered |
| 114 | dev followup | ok the Qwen3.8 27B MTP 8-bit one looks good — open its model card and list the files, does it need anything special to run MTP speculative decoding?contextI've got a 128GB M4 Max. What are the hot MLX quants right now? Specifically look for the newest Qwen3.8, gpt-oss and any 'Air' variants in mlx-community and tell me the total weight size of each so I know what fits in unified memory. | hf_fs hub_repo_details | hf_repo_read_text hf_repo_list_files | covered |
| 115 | dev initial | I've got a 128GB M4 Max. What are the hot MLX quants right now? Specifically look for the newest Qwen3.8, gpt-oss and any 'Air' variants in mlx-community and tell me the total weight size of each so I know what fits in unified memory. | hf_fs hub_repo_search | hf_models_search hf_repo_info | covered |
| 116 | held-out followup | what does the AudioSR paper (2309.07314) say about speech-only vs general audio performance?contextI've got a pile of noisy 16kHz interview recordings I want to restore to 48k. Compare sidon, MossFormer2_SR_48K / SE_48K and resemble-enhance — read their model cards and tell me which checkpoints each actually ships | hf_fs | hf_paper_get hf_paper_read | covered |
| 117 | held-out followup | didn't meta put out some SAM-style audio separation model? check what's in itcontextI've got a pile of noisy 16kHz interview recordings I want to restore to 48k. Compare sidon, MossFormer2_SR_48K / SE_48K and resemble-enhance — read their model cards and tell me which checkpoints each actually ships | hf_fs hub_repo_search | hf_models_search hf_repo_list_files | covered |
| 118 | held-out initial | I've got a pile of noisy 16kHz interview recordings I want to restore to 48k. Compare sidon, MossFormer2_SR_48K / SE_48K and resemble-enhance — read their model cards and tell me which checkpoints each actually ships | hf_fs hub_repo_details | hf_hub_lookup ★ hf_repo_read_text hf_repo_list_files | covered |
| 119 | dev followup | love those. go ahead and set up three blank static Spaces on my account for them, publiccontextI want to build a few small apps that people would actually use. look at what's hot on spaces right now, open up the top handful and tell me what each one actually does, then pitch me 3 ideas in that vein | create_repo | hf_repo_create | covered |
| 120 | dev initial | I want to build a few small apps that people would actually use. look at what's hot on spaces right now, open up the top handful and tell me what each one actually does, then pitch me 3 ideas in that vein | hf_fs | hf_trending hf_repo_info hf_repo_read_text | covered |
| 121 | dev followup | what splits and columns does ibm-granite/ChartNet have?contextI'm building an eval for pulling the numbers back out of scientific line plots — incl. Kaplan-Meier survival curves. What datasets and papers already exist for chart-to-table / plot digitization? newest first | hf_fs hub_repo_details | hf_dataset_structure | covered |
| 122 | dev initial | I'm building an eval for pulling the numbers back out of scientific line plots — incl. Kaplan-Meier survival curves. What datasets and papers already exist for chart-to-table / plot digitization? newest first | hf_fs hub_repo_search | hf_datasets_search hf_papers_search | covered |
| 123 | dev followup | the SenseNova Loop 9B preview and MiniMax M3.1 Flash look interesting — when were they published and what does the Loop model card claim?contextwhat's actually new in open-weight LLMs this week? show me what's trending and anything dropped in the last few days, esp. from mistral | hf_fs hub_repo_details | hf_repo_info hf_repo_history ★ hf_repo_read_text | covered |
| 124 | dev initial | what's actually new in open-weight LLMs this week? show me what's trending and anything dropped in the last few days, esp. from mistral | hf_fs hub_repo_search | hf_trending hf_models_search | covered |
| 125 | dev followup | What's trending right now? And I saw ISTA-DASLab put out GSQ-RCO GGUF quants of the 27B and Flash-Next — check their cards for which file sizes are available, plus how the DeepSeek V4.1 Flash one compares.contextQwen3.8 just dropped — what's the actual difference between Flash-Next and the 27B? Context length, active params, recommended sampling settings, all that. | hf_fs | hf_trending hf_models_search hf_repo_list_files | covered |
| 126 | dev followup | also is there anything new from gemma 5 or mistral small 4? and does Nanbeige 4.3 33B have a GGUF yetcontextQwen3.8 just dropped — what's the actual difference between Flash-Next and the 27B? Context length, active params, recommended sampling settings, all that. | hf_fs hub_repo_search | hf_models_search | covered |
| 127 | dev initial | Qwen3.8 just dropped — what's the actual difference between Flash-Next and the 27B? Context length, active params, recommended sampling settings, all that. | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_repo_info hf_repo_read_text | covered |
| 128 | dev followup | ok, run it with the first English SVS example and give me the audiocontextHow does the ASLP-lab SemBridge demo work? I want to know what inputs the app takes and what the example singing-voice prompts look like before I call it. | dynamic_space | hf_space_tools hf_space_invoke | covered |
| 129 | dev initial | How does the ASLP-lab SemBridge demo work? I want to know what inputs the app takes and what the example singing-voice prompts look like before I call it. | dynamic_space hf_fs | hf_spaces_search hf_space_tools hf_repo_read_text | covered |
| 130 | dev followup | who's the uploader — what other models do they have, what's in their collection, and do they mention DeepSeek-V2.5 anywhere? also pull that model's cardcontextthere's a 'PyEdu-Rs' dataset floating around that says it's built from SmolLM's python-edu. Find the original python-edu data in smollm-corpus and show me how it's structured | hf_fs | hf_models_search hf_collections_search hf_collection_get hf_repo_read_text | covered |
| 131 | dev initial | there's a 'PyEdu-Rs' dataset floating around that says it's built from SmolLM's python-edu. Find the original python-edu data in smollm-corpus and show me how it's structured | hf_fs hub_repo_details hub_repo_search | hf_datasets_search hf_dataset_structure | covered |
| 132 | dev followup | is there a DFlash draft model for gemma 4 26B A4B that works with llama.cpp? I'd want a GGUF of it, or of the official -assistant modelcontextLook at that ThinkingCap fine-tune of gemma-4-26B-A4B-it and its GGUF version — read the model card plus generation_config, config, tokenizer and processor configs and tell me what they changed vs google's original (sampling defaults, chat template, context length). | hf_fs hub_repo_search | hf_models_search | covered |
| 133 | dev initial | Look at that ThinkingCap fine-tune of gemma-4-26B-A4B-it and its GGUF version — read the model card plus generation_config, config, tokenizer and processor configs and tell me what they changed vs google's original (sampling defaults, chat template, context length). | hf_fs | hf_models_search hf_repo_read_text | covered |
| 134 | dev initial | show me the two jpgs in the v19 output folder of my results dataset — the eye-corner close-up and the front/hair one. want to eyeball whether the smoothing pass looks ok | hf_fs | hf_repo_list_files hf_repo_read_image | covered |
| 135 | dev initial | How is Bria's Fibo 2.0 editing demo built? I want to run it locally — go through its requirements, app.py and the pipeline code and tell me what it depends on and whether it calls a hosted API. | hf_fs hub_repo_details | hf_spaces_list hf_repo_list_files hf_repo_read_text | covered |
| 136 | dev followup | Add Moonshot, Liquid, IBM Granite, inclusionAI and Tencent to that list — and tell me what the newest inclusionAI and Tencent ones actually do.contextGive me a rundown of what's trending and what the big labs pushed out lately — Google, Qwen, Mistral, NVIDIA, DeepSeek, Zhipu, Microsoft, Cohere, Meta. Also anything new for Turkish, e.g. from Trendyol. | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_repo_info hf_repo_read_text | covered |
| 137 | dev initial | Give me a rundown of what's trending and what the big labs pushed out lately — Google, Qwen, Mistral, NVIDIA, DeepSeek, Zhipu, Microsoft, Cohere, Meta. Also anything new for Turkish, e.g. from Trendyol. | hf_fs hub_repo_search | hf_trending hf_models_search | covered |
| 138 | dev followup | meta-llama one is gated for me, use an ungated mirror of the same configcontextPull the configs for DeepSeek-V3, Kimi-K2-Instruct, Llama-3.1-405B-Instruct and gpt-oss-120b and make me a table: hidden size, layers, heads, KV heads, experts/active experts, vocab, context length. | hf_fs hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 139 | dev initial | Pull the configs for DeepSeek-V3, Kimi-K2-Instruct, Llama-3.1-405B-Instruct and gpt-oss-120b and make me a table: hidden size, layers, heads, KV heads, experts/active experts, vocab, context length. | hf_fs | hf_repo_read_text | covered |
| 140 | dev followup | what about unsloth's version, specifically the Q4_K_M?contextdeciding between DeepSeek Coder V2 Lite and Qwen3 Coder 30B-A3B for local autocomplete. find the Q4 gguf files for both (bartowski for deepseek, whoever has the qwen one) and tell me the sizes | hf_fs hub_repo_details | hf_models_search hf_repo_list_files | covered |
| 141 | dev initial | deciding between DeepSeek Coder V2 Lite and Qwen3 Coder 30B-A3B for local autocomplete. find the Q4 gguf files for both (bartowski for deepseek, whoever has the qwen one) and tell me the sizes | hf_fs hub_repo_search | hf_models_search hf_repo_list_files | covered |
| 142 | held-out followup | which Qwen3.5 sizes get the most downloads? and is there a GGUF of the small Nemotron reasoning modelcontextwhat's hot right now for math reasoning models? also list everything Qwen has pushed recently, newest first | hf_fs hub_repo_search | hf_models_search | covered |
| 143 | held-out followup | for evals: grab the MathArena 2026 competition sets, GPQA diamond, AGIEval SAT and DeepScaleRcontextwhat's hot right now for math reasoning models? also list everything Qwen has pushed recently, newest first | hf_fs hub_repo_search | hf_datasets_search | covered |
| 144 | held-out initial | what's hot right now for math reasoning models? also list everything Qwen has pushed recently, newest first | hf_fs hub_repo_search | hf_models_search | covered |
| 145 | held-out followup | is the generation job still going? give me the last few log linescontextshow me the rubble renders from the hazard props batch in my bucket — just the cleaned ones — and pull up a couple so I can eyeball them | hf_jobs | hf_jobs_list hf_job_logs | covered |
| 146 | held-out initial | show me the rubble renders from the hazard props batch in my bucket — just the cleaned ones — and pull up a couple so I can eyeball them | hf_fs | hf_buckets_list hf_repo_list_files hf_repo_read_image | covered |
| 147 | dev followup | Is there a GGUF build of the Qwen3 TTS CustomVoice or Chatterbox one in that audio.cpp gguf collection repo? list the files for whichever existscontextI'm picking a TTS engine for a Japanese anime-style voice app. Read the model cards for Irodori-TTS v4.1, ResembleAI chatterbox-turbo and Qwen3-TTS-12Hz-1.7B (VoiceDesign + CustomVoice) and tell me which handles emotion/style control best and how big each checkpoint is. | hf_fs | hf_repo_list_files | covered |
| 148 | dev initial | I'm picking a TTS engine for a Japanese anime-style voice app. Read the model cards for Irodori-TTS v4.1, ResembleAI chatterbox-turbo and Qwen3-TTS-12Hz-1.7B (VoiceDesign + CustomVoice) and tell me which handles emotion/style control best and how big each checkpoint is. | hf_fs hub_repo_details | hf_repo_read_text hf_repo_info | covered |
| 149 | dev initial | Show me the contact sheets for scene S03 from worker E and S06 from worker F in my image-eval bucket (the desert test run, under audit/) — I want to eyeball them side by side. | hf_fs | hf_repo_list_files hf_repo_read_image | covered |
| 150 | held-out initial | what has the account 'acme-labs' actually put out there? list all their models, datasets and spaces | hf_fs hub_repo_search | hf_models_search hf_datasets_search hf_spaces_list | covered |
| 151 | dev initial | double-check the upload went through: in my dataset repo, is there data/auto/<run-id>.json and the matching data/auto_rows/<run-id>.jsonl? how big are they? | hf_fs | hf_repo_paths_info | covered |
| 152 | held-out followup | Different topic: I've got six Spaces on my account (router, upstream mirror, web edition, standalone web, guardian, plus the org copy of upstream). Can you check each one — is it up, what SDK, when was it last touched?contextBefore I ship anything on gemma-4-31B-it — what does its license actually say about commercial use and redistribution of fine-tunes? Quote the relevant bits. | hf_fs hub_repo_details | hf_whoami hf_spaces_list | covered |
| 153 | held-out initial | Before I ship anything on gemma-4-31B-it — what does its license actually say about commercial use and redistribution of fine-tunes? Quote the relevant bits. | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 154 | dev initial | What's actually in the HLE-Verified release of Humanity's Last Exam? List the files and summarize the card — how did they verify the questions? | hf_fs hub_repo_details | hf_datasets_search hf_repo_list_files hf_repo_read_text | covered |
| 155 | dev initial | thibaud/controlnet-openpose-sdxl-1.0 — what files ship with it and what does its config.json look like? need to know if it'll drop into my diffusers SDXL pipeline | hf_fs hub_repo_details | hf_repo_list_files hf_repo_read_text | covered |
| 156 | dev followup | ok now the voice engine one — how is the qwen3 tts model loaded? show me the relevant bits of the inference file and requirementscontextgo through my TTS spaces — the higgs audio docker one, the audiobook one and the voice engine — and explain how the multi-character audiobook generation works. read the app.py and the config/inference code | hf_fs | hf_repo_list_files hf_repo_read_text | covered |
| 157 | dev initial | go through my TTS spaces — the higgs audio docker one, the audiobook one and the voice engine — and explain how the multi-character audiobook generation works. read the app.py and the config/inference code | hf_fs | hf_spaces_list hf_repo_list_files hf_repo_read_text | covered |
| 158 | dev followup | I also need UAVDT and the multi-drone MDMT / M3OT tracking benchmarks — are they mirrored anywhere?contextThe DynUAV authors put something up under the same name as both a dataset and a model — list everything in both so I can tell where the actual data and checkpoints are. | hf_fs hub_repo_search | hf_datasets_search | covered |
| 159 | dev initial | The DynUAV authors put something up under the same name as both a dataset and a model — list everything in both so I can tell where the actual data and checkpoints are. | hf_fs | hf_models_search hf_datasets_search hf_repo_list_files | covered |
| 160 | held-out followup | pdf-ocr by pszemraj and prithivMLmods' Multimodal-OCR look good — are they still running and what do their readmes say?contextbefore I start building, what demos already exist for: pdf → markdown / OCR, solar & energy forecasting, EV charging, and astronomy (exoplanets, telescopes)? most-liked first | hf_fs hub_repo_details | hf_repo_info hf_repo_read_text | covered |
| 161 | held-out initial | before I start building, what demos already exist for: pdf → markdown / OCR, solar & energy forecasting, EV charging, and astronomy (exoplanets, telescopes)? most-liked first | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_spaces_list | covered |
| 162 | dev followup | are there already trained mispronunciation detection models I could just use instead?contextFor a GOP-style pronunciation scoring setup on speechocean762, check facebook/wav2vec2-lv-60-espeak-cv-ft, facebook/wav2vec2-xlsr-53-espeak-cv-ft and microsoft/wavlm-large — size, license, last updated, downloads. Which should I fine-tune? | hf_fs hub_repo_search | hf_models_search | covered |
| 163 | dev initial | For a GOP-style pronunciation scoring setup on speechocean762, check facebook/wav2vec2-lv-60-espeak-cv-ft, facebook/wav2vec2-xlsr-53-espeak-cv-ft and microsoft/wavlm-large — size, license, last updated, downloads. Which should I fine-tune? | hf_fs hub_repo_details | hf_repo_info | covered |
| 164 | dev followup | Now I want to ship a demo. Streamlit on Spaces — is it a docker template now? what's the CLI to create the space and push my files?contextI'm prototyping a credit scoring model for thin-file borrowers in East Africa — think VSLAs/savings groups, mobile money transaction history, social collateral. Find me a few credit default datasets to start with and the relevant research (also anything on conformal prediction for count outcomes, since repayment counts are integer). Pull abstracts for the most relevant ones. | hf_fs | hf_docs_search hf_docs_read | covered |
| 165 | dev initial | I'm prototyping a credit scoring model for thin-file borrowers in East Africa — think VSLAs/savings groups, mobile money transaction history, social collateral. Find me a few credit default datasets to start with and the relevant research (also anything on conformal prediction for count outcomes, since repayment counts are integer). Pull abstracts for the most relevant ones. | hf_fs hub_repo_search | hf_datasets_search hf_papers_search hf_paper_get | covered |
| 166 | dev followup | Show me everything from yesterday's list (Oct 29), not just the top ones.contextanything in today's papers on on-policy distillation or SFT data selection? I'm also tracking RLVR/GRPO and reward modeling | hf_fs | hf_daily_papers | covered |
| 167 | dev initial | anything in today's papers on on-policy distillation or SFT data selection? I'm also tracking RLVR/GRPO and reward modeling | hf_fs | hf_daily_papers | covered |
| 168 | held-out followup | For huihui's abliterated GGUFs of those, how big are the UD-Q3_K_M / Q2 MXFP4 splits for GLM-5.2, the Q4_K_XL and Q6_K_XL for GLM-5.3 Flash, and IQ1_S for DeepSeek? Trying to see what fits in 128GB.contextCompare GLM-5.2, DeepSeek V4.1 Flash 1017, GLM-5.3 Flash and Qwen3.8 Flash-Next: total/active params, license, downloads. | hf_fs | hf_repo_list_files | covered |
| 169 | held-out followup | what other abliterated models are trending right nowcontextCompare GLM-5.2, DeepSeek V4.1 Flash 1017, GLM-5.3 Flash and Qwen3.8 Flash-Next: total/active params, license, downloads. | hf_fs hub_repo_search | hf_models_search | covered |
| 170 | held-out initial | Compare GLM-5.2, DeepSeek V4.1 Flash 1017, GLM-5.3 Flash and Qwen3.8 Flash-Next: total/active params, license, downloads. | hf_fs hub_repo_details | hf_repo_info | covered |
| 171 | dev followup | anyone fine-tuned Qwen3.8-27B or the Flash-Next one yet? newest firstcontextwhat dropped overnight? give me trending plus the newest uploads from unsloth, bartowski, Qwen, Comfy-Org and ggml-org | hf_fs hub_repo_search | hf_models_search | covered |
| 172 | dev initial | what dropped overnight? give me trending plus the newest uploads from unsloth, bartowski, Qwen, Comfy-Org and ggml-org | hf_fs hub_repo_search | hf_trending hf_models_search | covered |
| 173 | held-out followup | Are there papers benchmarking multimodal LLMs on multi-sensor remote sensing — SAR, infrared, multispectral — like GEOBench-VLM?contextFor my earth-observation VLM I'm deciding on a vision encoder. What resolution, patch size and hidden dim do Apple's AIMv2 large 448 and native checkpoints use, and what other AIMv2 sizes exist? | hf_fs | hf_papers_search | covered |
| 174 | held-out followup | What downstream task subsets are inside the EarthDial dataset? Just the folder layout is fine.contextFor my earth-observation VLM I'm deciding on a vision encoder. What resolution, patch size and hidden dim do Apple's AIMv2 large 448 and native checkpoints use, and what other AIMv2 sizes exist? | hf_fs hub_repo_details | hf_repo_list_files | covered |
| 175 | held-out initial | For my earth-observation VLM I'm deciding on a vision encoder. What resolution, patch size and hidden dim do Apple's AIMv2 large 448 and native checkpoints use, and what other AIMv2 sizes exist? | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 176 | dev followup | What does the Llama 3.2 3B card say about the license and the benchmark numbers vs Gemma?contextI need a 1–3B instruct model for on-device use. Compare the usual suspects — SmolLM3, Llama 3.2 3B, Gemma 3 1B, Granite 3.3 2B, Falcon3 3B, Phi-4-mini, EXAONE 4.0 1.2B — by popularity and size, and tell me if there's anything newer from Qwen or Google. | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 177 | dev initial | I need a 1–3B instruct model for on-device use. Compare the usual suspects — SmolLM3, Llama 3.2 3B, Gemma 3 1B, Granite 3.3 2B, Falcon3 3B, Phi-4-mini, EXAONE 4.0 1.2B — by popularity and size, and tell me if there's anything newer from Qwen or Google. | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_repo_info | covered |
| 178 | dev followup | I found a few re-uploads of the PyEdu reasoning set (a raw one and a processed one) from some random account — pull up their overview cards so I can see size, license and whether they're legit.contextDid the CodeI/O authors ever release their python-edu reasoning traces? Check what hkust-nlp has put out, both datasets and model checkpoints. | hf_fs hub_repo_details | hf_repo_info hf_repo_read_text | covered |
| 179 | dev initial | Did the CodeI/O authors ever release their python-edu reasoning traces? Check what hkust-nlp has put out, both datasets and model checkpoints. | hf_fs hub_repo_search | hf_models_search hf_datasets_search | covered |
| 180 | dev followup | ok and is the original the python-edu subset in HuggingFaceTB's smollm-corpus? find it so I can comparecontextSomeone uploaded two datasets that look like a re-pack of python-edu — a '-Raw' one and a processed one from the same account. Read both READMEs and the .gitattributes and tell me what actually differs between raw and processed. | hf_fs hub_repo_search | hf_datasets_search | covered |
| 181 | dev initial | Someone uploaded two datasets that look like a re-pack of python-edu — a '-Raw' one and a processed one from the same account. Read both READMEs and the .gitattributes and tell me what actually differs between raw and processed. | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 182 | dev followup | show me a few lines of the training jsonl and the adversarial set, and the eval script in the repro folder — is the eval legit?contextlist every model and dataset the org 'northwind-labs' has put up, then go through their 1.5B model and its 'abstain' variant: model card, full file tree | hf_fs | hf_repo_read_text | covered |
| 183 | dev initial | list every model and dataset the org 'northwind-labs' has put up, then go through their 1.5B model and its 'abstain' variant: model card, full file tree | hf_fs hub_repo_search | hf_models_search hf_datasets_search hf_repo_read_text hf_repo_list_files | covered |
| 184 | dev followup | Now for the first account's tool-call datasets (the ToolACE pool, the glaive mix, the xLAM function calls, the API trace one and the merge scratch set) — list all files and give me the README of each.contextI found three accounts posting function-calling training data. List everything each of them has published — models, datasets and Spaces. | hf_fs hub_repo_details | hf_repo_list_files hf_repo_read_text | covered |
| 185 | dev initial | I found three accounts posting function-calling training data. List everything each of them has published — models, datasets and Spaces. | hf_fs hub_repo_search | hf_models_search hf_datasets_search hf_spaces_list | covered |
| 186 | held-out followup | give me details on the top roformer checkpoints — 6-stem SW, mini versions, the guitar one, the huge SCNet 4-stemcontextSwitching to stem separation: what are the recent papers on music source separation, which BS-RoFormer and SCNet checkpoints are people actually downloading, and are MUSDB18 and MoisesDB available to download? | hf_fs hub_repo_details | hf_models_search hf_repo_info | covered |
| 187 | held-out followup | now find papers on piano transcription, automatic piano cover generation and score following and summarize the newest onescontextSwitching to stem separation: what are the recent papers on music source separation, which BS-RoFormer and SCNet checkpoints are people actually downloading, and are MUSDB18 and MoisesDB available to download? | hf_fs | hf_papers_search | covered |
| 188 | held-out initial | Switching to stem separation: what are the recent papers on music source separation, which BS-RoFormer and SCNet checkpoints are people actually downloading, and are MUSDB18 and MoisesDB available to download? | hf_fs | hf_papers_search hf_models_search hf_datasets_search | covered |
| 189 | dev initial | There's a stock prices dataset on HF that updates daily with one CSV per ticker. How's it organized, and what columns/size does the AAPL file have? | hf_fs hub_repo_details | hf_repo_fulltext_search ★ hf_repo_list_files hf_dataset_structure | covered |
| 190 | dev followup | anything newer? show the latest Bonsai-2-27B MTP uploads, and whatever PrismML themselves pushed recently, newest firstcontextOne of the abliterated Ternary-Bonsai-2-27B v2 PQ2_0 MTP GGUF repos ships a SHA256SUMS file and a .patch for qwen35 MTP — show me both, and re-read the READMEs of the other Bonsai-2 27B MTP builds so I know which one needs a patched llama.cpp. | hf_fs hub_repo_search | hf_models_search | covered |
| 191 | dev initial | One of the abliterated Ternary-Bonsai-2-27B v2 PQ2_0 MTP GGUF repos ships a SHA256SUMS file and a .patch for qwen35 MTP — show me both, and re-read the READMEs of the other Bonsai-2 27B MTP builds so I know which one needs a patched llama.cpp. | hf_fs | hf_repo_list_files hf_repo_read_text | covered |
| 192 | dev followup | Tell me more about NVIDIA's NVFP4 version of DeepSeek V4.1 Flash — what GPUs it needs and how much accuracy it loses — and pull up paper 2610.08164 too.contextCatch me up: what's hot in papers today, and what have Qwen, DeepSeek, Moonshot, OpenAI, Meta and NVIDIA released recently? | hf_fs hub_repo_details | hf_models_search hf_repo_read_text hf_paper_get | covered |
| 193 | dev initial | Catch me up: what's hot in papers today, and what have Qwen, DeepSeek, Moonshot, OpenAI, Meta and NVIDIA released recently? | hf_fs hub_repo_search | hf_daily_papers hf_models_search | covered |
| 194 | held-out followup | for the top 10, show me the columns and splits so I can see which have chain-of-thoughtcontextLooking for finance reasoning data to fine-tune Qwen3 on — SEC filing QA, text-to-SQL over financial tables, Fin-R1's training data, FinCoT. Sort by downloads. | hub_repo_details | hf_dataset_structure | covered |
| 195 | held-out followup | find the Fin-R1 papercontextLooking for finance reasoning data to fine-tune Qwen3 on — SEC filing QA, text-to-SQL over financial tables, Fin-R1's training data, FinCoT. Sort by downloads. | hf_fs | hf_papers_search | covered |
| 196 | held-out initial | Looking for finance reasoning data to fine-tune Qwen3 on — SEC filing QA, text-to-SQL over financial tables, Fin-R1's training data, FinCoT. Sort by downloads. | hf_fs hub_repo_search | hf_datasets_search | covered |
| 197 | dev followup | read the cards for F5-TTS and the GPT-SoVITS base — what do they need for reference audio?contextwhat are people using these days to clone a voice or convert singing like RVC? most popular models and demos | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 198 | dev followup | any RVC webui or F5-TTS demo I can run online right now?contextwhat are people using these days to clone a voice or convert singing like RVC? most popular models and demos | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_spaces_list | covered |
| 199 | dev initial | what are people using these days to clone a voice or convert singing like RVC? most popular models and demos | hf_fs hub_repo_search | hf_models_search hf_spaces_search | covered |
| 200 | dev initial | ToolACE dataset — what configs/splits does it have, what's the schema, and show me the first 3 rows | hf_fs hub_repo_details | hf_dataset_structure hf_dataset_rows | covered |
| 201 | held-out followup | also check for research papers on generating synthetic career trajectories or resumes, and read the card for that anonymized working-histories datasetcontextI'm prototyping a career-path recommender. Are there open datasets of anonymized work histories, synthetic resumes or job postings I could use? | hf_fs | hf_papers_search hf_repo_read_text | covered |
| 202 | held-out initial | I'm prototyping a career-path recommender. Are there open datasets of anonymized work histories, synthetic resumes or job postings I could use? | hf_fs hub_repo_search | hf_datasets_search hf_repo_fulltext_search ★ | covered |
| 203 | dev followup | it errored — can you see what went wrong and resubmit with a shorter prompt?contextCan you spin up a quick 10-minute cpu-basic job on HF with my token that uses InferenceClient to have a big open model (Qwen3 235B or similar) critique my architecture principles list? Run it detached. | hf_jobs | hf_job_get hf_job_logs hf_job_run | covered |
| 204 | dev initial | Can you spin up a quick 10-minute cpu-basic job on HF with my token that uses InferenceClient to have a big open model (Qwen3 235B or similar) critique my architecture principles list? Run it detached. | hf_jobs | hf_job_run | covered |
| 205 | dev followup | run a quick remote script that counts examples in every train.jsonl in that bucket and reports per categorycontextlook at the training pipeline code in my environment-testing Space (scheduler, worker, recipes) and cross-check it against the category manifests in my bucket — are Basic/Intermediate/Advanced all actually there? | hf_jobs | hf_job_run | covered |
| 206 | dev initial | look at the training pipeline code in my environment-testing Space (scheduler, worker, recipes) and cross-check it against the category manifests in my bucket — are Basic/Intermediate/Advanced all actually there? | hf_fs | hf_repo_list_files hf_repo_read_text | covered |
| 207 | dev followup | Are there any demos where I can try a few of these in the browser with my own audio?contextWhat's the best speech-to-text for Dutch right now? Whisper fine-tunes vs Parakeet vs Canary vs Voxtral — I want something I can self-host. | dynamic_space hf_fs hub_repo_search | hf_spaces_search | covered |
| 208 | dev followup | also check SenseVoice, Kyutai's moshi/hibiki, CrisperWhisper and Phi-4-multimodalcontextWhat's the best speech-to-text for Dutch right now? Whisper fine-tunes vs Parakeet vs Canary vs Voxtral — I want something I can self-host. | hf_fs hub_repo_search | hf_models_search | covered |
| 209 | dev initial | What's the best speech-to-text for Dutch right now? Whisper fine-tunes vs Parakeet vs Canary vs Voxtral — I want something I can self-host. | hf_fs hub_repo_search | hf_models_search | covered |
| 210 | dev followup | try it — make a landing page mockup for a coffee subscription app with the Qwen-Image spacecontextI need to generate website/app UI mockups from text prompts. What are the trending text-to-image and image editing models right now, and is there a demo app I can try? | dynamic_space | hf_space_tools hf_space_invoke | covered |
| 211 | dev followup | how do Qwen-Image-2.1 and the FLUX klein model compare in size and license?contextI need to generate website/app UI mockups from text prompts. What are the trending text-to-image and image editing models right now, and is there a demo app I can try? | hf_fs hub_repo_details | hf_repo_info | covered |
| 212 | dev initial | I need to generate website/app UI mockups from text prompts. What are the trending text-to-image and image editing models right now, and is there a demo app I can try? | dynamic_space hf_fs hub_repo_search | hf_trending hf_models_search hf_spaces_search | covered |
| 213 | dev followup | what does the JaGovFaqs-22k retrieval dataset look like — splits and columns?contextA new 0.3B Japanese embedding preview model claims SOTA on JMTEB. What does JMTEB actually include, and how is cl-nagoya/ruri-v3-310m set up (pooling, prefixes, max length)? | hf_fs hub_repo_details | hf_dataset_structure | covered |
| 214 | dev followup | does that org have a paper or a collection for the model?contextA new 0.3B Japanese embedding preview model claims SOTA on JMTEB. What does JMTEB actually include, and how is cl-nagoya/ruri-v3-310m set up (pooling, prefixes, max length)? | hf_fs | hf_collections_search hf_paper_get | covered |
| 215 | dev initial | A new 0.3B Japanese embedding preview model claims SOTA on JMTEB. What does JMTEB actually include, and how is cl-nagoya/ruri-v3-310m set up (pooling, prefixes, max length)? | hf_fs hub_repo_details | hf_datasets_search hf_repo_read_text | covered |
| 216 | held-out followup | are the Lightricks LTX-2 spaces actually up, and what hardware are they on?contextI've got a start image and an end image — any demo that'll generate the video in between? wan 2.2 or ltx style | hub_repo_details | hf_spaces_list | covered |
| 217 | held-out initial | I've got a start image and an end image — any demo that'll generate the video in between? wan 2.2 or ltx style | dynamic_space hf_fs hub_repo_search | hf_spaces_search | covered |
| 218 | held-out followup | any tech reports or papers behind these models?contextLooking for a good Korean 8B-ish base model to continue pretraining on — what are the most downloaded options? | hf_fs | hf_paper_get hf_papers_search | covered |
| 219 | held-out initial | Looking for a good Korean 8B-ish base model to continue pretraining on — what are the most downloaded options? | hf_fs hub_repo_search | hf_models_search | covered |
| 220 | dev followup | which target_modules should I use? check the peft docscontextCan I LoRA fine-tune Mamba-Codestral-7B with PEFT? Find the model and check whether PEFT supports Mamba layers. | hf_fs | hf_docs_search hf_docs_read | covered |
| 221 | dev followup | and pull up the Mamba-2 paper summarycontextCan I LoRA fine-tune Mamba-Codestral-7B with PEFT? Find the model and check whether PEFT supports Mamba layers. | hf_fs | hf_papers_search hf_paper_get | covered |
| 222 | dev initial | Can I LoRA fine-tune Mamba-Codestral-7B with PEFT? Find the model and check whether PEFT supports Mamba layers. | hf_fs hub_repo_search | hf_models_search hf_docs_search | covered |
| 223 | dev followup | list the .gguf files in those two repos so I can pick a quantcontextmy local markdown search tool uses a tiny 0.6B query-expansion model in GGUF — are there other small query expansion / HyDE models I could swap in? | hf_fs hub_repo_details | hf_repo_list_files | covered |
| 224 | dev initial | my local markdown search tool uses a tiny 0.6B query-expansion model in GGUF — are there other small query expansion / HyDE models I could swap in? | hf_fs hub_repo_search | hf_models_search hf_repo_fulltext_search ★ | covered |
| 225 | dev followup | fine, relaunch it: on an H200, serve the teacher and the 96- and 64-expert pruned Nemotron transcribe checkpoints with vLLM one after another and compute WER on the eval setcontextwhat jobs do I have running right now? tail the last 60 lines of the newest one | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered |
| 226 | dev initial | what jobs do I have running right now? tail the last 60 lines of the newest one | hf_jobs | hf_jobs_list hf_job_logs | covered |
| 227 | dev initial | I have a start frame and an end frame — can you make a short clip that animates between them? I think Wan 2.2 has a first/last-frame mode somewhere you can run. | dynamic_space | hf_spaces_search hf_space_tools hf_space_invoke | covered |
| 228 | dev followup | cool, spin up a new public docker space for my api so I can deploy it therecontextbartowski's Qwen2.5-1.5B-Instruct GGUF — what quants are there and which would you run on a 2-vCPU box? | create_repo | hf_repo_create | covered |
| 229 | dev initial | bartowski's Qwen2.5-1.5B-Instruct GGUF — what quants are there and which would you run on a 2-vCPU box? | hf_fs hub_repo_details | hf_repo_list_files | covered |
| 230 | dev followup | grab the paper too, and point me at SadTalker weights as a fallbackcontextIs there any released code, weights or a demo for TalkingPose, the pose-driven talking head thing? | hf_fs hub_repo_search | hf_papers_search hf_models_search | covered |
| 231 | dev initial | Is there any released code, weights or a demo for TalkingPose, the pose-driven talking head thing? | hf_fs hub_repo_search | hf_models_search hf_spaces_search hf_repo_fulltext_search ★ | covered |
| 232 | held-out followup | list every file in ProsusAI/finbert with sizes — is there a safetensors or only pytorch_model.bin?contextFor a fintech side project I need: a financial sentiment classifier (FinBERT?), a time-series forecaster (Amazon Chronos), and an embedding model (bge-m3 or bge-small). Compare downloads, parameter counts and on-disk size. | hf_fs hub_repo_details | hf_repo_list_files | covered |
| 233 | held-out initial | For a fintech side project I need: a financial sentiment classifier (FinBERT?), a time-series forecaster (Amazon Chronos), and an embedding model (bge-m3 or bge-small). Compare downloads, parameter counts and on-disk size. | hub_repo_details hub_repo_search | hf_models_search hf_repo_info | covered |
| 234 | dev followup | Does transformers have docs on streaming audio output for text-to-speech?contextI need a TTS model that can stream audio as it generates (autoregressive, token by token) for a low-latency voice assistant. What are my options? | hf_fs | hf_docs_search | covered |
| 235 | dev followup | Compare Bark, ChatTTS, XTTS-v2, Parler-TTS and SpeechT5 on that.contextI need a TTS model that can stream audio as it generates (autoregressive, token by token) for a low-latency voice assistant. What are my options? | hf_fs hub_repo_details hub_repo_search | hf_repo_info hf_repo_read_text | covered |
| 236 | dev initial | I need a TTS model that can stream audio as it generates (autoregressive, token by token) for a low-latency voice assistant. What are my options? | hf_fs hub_repo_search | hf_models_search hf_repo_fulltext_search ★ | covered |
| 237 | held-out followup | is there anything newer from tencent in the Hunyuan3D line?contextcompare the open image-to-3D mesh generators: TRELLIS.2, Hunyuan3D 2.1, TripoSG, TripoSF, Step1X-3D, Direct3D-S2, Sparc3D. downloads, license, last update. | hf_fs hub_repo_search | hf_models_search | covered |
| 238 | held-out followup | Hi3D v1.0 looks promising — can I use it commercially? read the actual license text and the rest of the cardcontextcompare the open image-to-3D mesh generators: TRELLIS.2, Hunyuan3D 2.1, TripoSG, TripoSF, Step1X-3D, Direct3D-S2, Sparc3D. downloads, license, last update. | hf_fs | hf_repo_read_text | covered |
| 239 | held-out initial | compare the open image-to-3D mesh generators: TRELLIS.2, Hunyuan3D 2.1, TripoSG, TripoSF, Step1X-3D, Direct3D-S2, Sparc3D. downloads, license, last update. | hf_fs hub_repo_details | hf_models_search hf_repo_info | covered |
| 240 | dev followup | also pull up people's speech from MLCommons as an open baselinecontextI'm writing a dataset card for our multi-speaker conversational speech corpus. find me how vendors like Nexdata, DataOceanAI, Defined.ai, AxonData present theirs — language coverage, hours, speaker counts, transcript format, license, sample previews | hf_fs hub_repo_details hub_repo_search | hf_datasets_search hf_repo_info | covered |
| 241 | dev initial | I'm writing a dataset card for our multi-speaker conversational speech corpus. find me how vendors like Nexdata, DataOceanAI, Defined.ai, AxonData present theirs — language coverage, hours, speaker counts, transcript format, license, sample previews | hf_fs hub_repo_search | hf_datasets_search hf_repo_read_text | covered |
| 242 | dev initial | what files are in the ToolACE function-calling dataset? I want the raw json, not the parquet conversion | hf_fs hub_repo_details | hf_repo_list_files | covered |
| 243 | held-out followup | can I try the Qwen3-TTS voice design one on a German sentence without installing anything locally?contextbest open TTS for German at the moment? looking at Qwen3-TTS, chatterbox, whatever's trending | dynamic_space hf_jobs | hf_spaces_search hf_space_tools hf_space_invoke | covered |
| 244 | held-out initial | best open TTS for German at the moment? looking at Qwen3-TTS, chatterbox, whatever's trending | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_trending | covered |
| 245 | held-out followup | list every repo that account has, models and datasetscontextwhat files are in the 09_standalone_model subfolder of that experimental model repo I linked? | hf_fs hub_repo_search | hf_models_search hf_datasets_search | covered |
| 246 | held-out initial | what files are in the 09_standalone_model subfolder of that experimental model repo I linked? | hf_fs | hf_repo_list_files | covered |
| 247 | dev followup | Give me the top 5 trending text-to-image models right now and top 5 trending small LLMs (under 8B) that'd run locally on my Mac, with downloads and likes.contextI run a tiny marketing agency in Brazil. I want an open-source stack: something to write ad copy in Portuguese, something to make short social video clips, and image generation. What are the most downloaded options for each? | hf_fs hub_repo_search | hf_models_search | covered |
| 248 | dev followup | are there browser demos I can try these in before installing anything?contextI run a tiny marketing agency in Brazil. I want an open-source stack: something to write ad copy in Portuguese, something to make short social video clips, and image generation. What are the most downloaded options for each? | dynamic_space hf_fs hub_repo_search | hf_spaces_search | covered |
| 249 | dev initial | I run a tiny marketing agency in Brazil. I want an open-source stack: something to write ad copy in Portuguese, something to make short social video clips, and image generation. What are the most downloaded options for each? | hf_fs hub_repo_search | hf_models_search | covered |
| 250 | dev followup | what's actually in HuggingFaceTB/python-edu — columns, splits, row count?contextWe built a code dataset from python-edu samples, rewritten with DeepSeek-V2.5, and want to publish it. Can you check the provenance chain — the smollm-corpus card, the-stack-v2-train-full-ids terms, and the DeepSeek-V2.5 model license — and tell me what restrictions carry over? | hf_fs hub_repo_details | hf_dataset_structure | covered |
| 251 | dev initial | We built a code dataset from python-edu samples, rewritten with DeepSeek-V2.5, and want to publish it. Can you check the provenance chain — the smollm-corpus card, the-stack-v2-train-full-ids terms, and the DeepSeek-V2.5 model license — and tell me what restrictions carry over? | hf_fs hub_repo_details | hf_repo_read_text hf_repo_info | covered |
| 252 | dev followup | Is there a copy of python-edu on the Hub that actually includes the code text rather than just blob IDs?contextWe made a dataset by having DeepSeek-V2.5 rewrite Python-Edu samples into Rust. What license terms do we inherit — check the-stack-dedup, Python-Edu / smollm-corpus, and DeepSeek-V2.5's model license. | hf_fs hub_repo_details hub_repo_search | hf_datasets_search hf_repo_fulltext_search ★ | covered |
| 253 | dev initial | We made a dataset by having DeepSeek-V2.5 rewrite Python-Edu samples into Rust. What license terms do we inherit — check the-stack-dedup, Python-Edu / smollm-corpus, and DeepSeek-V2.5's model license. | hf_fs hub_repo_details hub_repo_search | hf_repo_read_text | covered |
| 254 | dev followup | Find a text-to-video Space that runs on ZeroGPU that I could copy as a starting point.contextCreate a new public Space called text2video-sandbox for a text-to-video app (gradio if possible). | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_spaces_list | covered |
| 255 | dev followup | Clone that one into my account instead.contextCreate a new public Space called text2video-sandbox for a text-to-video app (gradio if possible). | create_repo | hf_repo_create | covered |
| 256 | dev initial | Create a new public Space called text2video-sandbox for a text-to-video app (gradio if possible). | create_repo | hf_repo_create | covered |
| 257 | held-out followup | what's in Granary v2? splits, size, languagescontextnvidia just dropped Nemotron 3.5 Transcribe 30B-A4B — what's in the card (languages, WER), and has anyone made quants or finetunes off it yet? | hf_fs hub_repo_details | hf_dataset_structure hf_repo_info | covered |
| 258 | held-out initial | nvidia just dropped Nemotron 3.5 Transcribe 30B-A4B — what's in the card (languages, WER), and has anyone made quants or finetunes off it yet? | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 259 | held-out followup | How big is stack-edu and what's its schema? Also is DeepSeek-V2.5's license OK for releasing generated data?contextLook at the two Python-to-Rust code datasets in my org (the raw one and the filtered one) and read their cards, then tell me what upstream sources they cite. | hf_fs hub_repo_details | hf_dataset_structure hf_repo_read_text | covered |
| 260 | held-out followup | what collections do we have under the org?contextLook at the two Python-to-Rust code datasets in my org (the raw one and the filtered one) and read their cards, then tell me what upstream sources they cite. | hf_fs | hf_collections_search | covered |
| 261 | held-out initial | Look at the two Python-to-Rust code datasets in my org (the raw one and the filtered one) and read their cards, then tell me what upstream sources they cite. | hf_fs hub_repo_details hub_repo_search | hf_whoami hf_datasets_search hf_repo_read_text | covered |
| 262 | held-out followup | is there a gguf of Veena? what quant files do those repos havecontextneed a voice model that handles Hinglish naturally. compare indic-parler-tts, Veena, svara-tts, IndicF5 and Kokoro | hf_fs hub_repo_search | hf_models_search hf_repo_list_files | covered |
| 263 | held-out followup | can I hear a sample from one of these in a demo before downloading?contextneed a voice model that handles Hinglish naturally. compare indic-parler-tts, Veena, svara-tts, IndicF5 and Kokoro | dynamic_space | hf_spaces_search hf_space_tools hf_space_invoke | covered |
| 264 | held-out initial | need a voice model that handles Hinglish naturally. compare indic-parler-tts, Veena, svara-tts, IndicF5 and Kokoro | hf_fs hub_repo_details hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 265 | dev followup | is there a ~128B Qwen3.5, ideally FP8? list all sizes in that familycontexthow many active params and experts does DeepSeek-V4-Flash-Base have? context length? | hf_fs hub_repo_search | hf_models_search | covered |
| 266 | dev initial | how many active params and experts does DeepSeek-V4-Flash-Base have? context length? | hf_fs hub_repo_details | hf_repo_read_text hf_repo_info | covered |
| 267 | dev followup | how do I load just a slice of it with the datasets library — is there streaming?contextwhat does the ToolACE function-calling dataset look like? columns, splits, and a couple of sample rows | hf_fs | hf_docs_search hf_docs_read | covered |
| 268 | dev initial | what does the ToolACE function-calling dataset look like? columns, splits, and a couple of sample rows | hf_fs hub_repo_details | hf_dataset_structure hf_dataset_rows | covered |
| 269 | held-out followup | show me how to send an image in a chat completion request through providers — python examplecontextwhich multimodal (image in, text out) instruct models can I hit via serverless inference providers right now? and point me at the docs for calling them | hf_fs | hf_docs_search hf_docs_read | covered |
| 270 | held-out initial | which multimodal (image in, text out) instruct models can I hit via serverless inference providers right now? and point me at the docs for calling them | hf_fs hub_repo_search | hf_models_search hf_docs_search | covered |
| 271 | held-out followup | pull up the diffusers docs page for that pipeline — I need the loading example and recommended dtypecontextI downloaded qwen_image_bf16.safetensors for ComfyUI but want to use it from Python with diffusers instead. Where are the official weights and what's the pipeline class? | hf_fs | hf_docs_search hf_docs_read | covered |
| 272 | held-out initial | I downloaded qwen_image_bf16.safetensors for ComfyUI but want to use it from Python with diffusers instead. Where are the official weights and what's the pipeline class? | hf_fs hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 273 | dev followup | that one failed. any other image-to-3D apps, like hunyuan3d, that can be called as tools?contextturn this product photo into a 3D mesh I can drop into Blender — TRELLIS.2 if it's up | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_spaces_list | covered |
| 274 | dev initial | turn this product photo into a 3D mesh I can drop into Blender — TRELLIS.2 if it's up | dynamic_space hf_fs hub_repo_search | hf_spaces_list hf_space_tools hf_space_invoke | covered |
| 275 | held-out followup | for those 4, add up the safetensors sizes so I know the real GB on disk, not param countcontextwhich NVFP4 quants run on a DGX Spark? looking at MiniMax M2.7 (incl. the REAP pruned ones) and Qwen3-Next thinking | hf_fs hub_repo_details | hf_repo_info hf_repo_paths_info | covered |
| 276 | held-out followup | show me the readmes for the two MiniMax ones — any deployment notes or benchmarks?contextwhich NVFP4 quants run on a DGX Spark? looking at MiniMax M2.7 (incl. the REAP pruned ones) and Qwen3-Next thinking | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 277 | held-out initial | which NVFP4 quants run on a DGX Spark? looking at MiniMax M2.7 (incl. the REAP pruned ones) and Qwen3-Next thinking | hf_fs hub_repo_search | hf_models_search hf_repo_fulltext_search ★ | covered |
| 278 | dev followup | find the main papers behind GLM and MiniCPMcontextwhich Chinese AI labs have the most downloaded open models? Qwen, deepseek, BAAI, Zhipu, Moonshot, MiniMax, Tencent etc — org, downloads, top model | hf_fs | hf_papers_search | covered |
| 279 | dev initial | which Chinese AI labs have the most downloaded open models? Qwen, deepseek, BAAI, Zhipu, Moonshot, MiniMax, Tencent etc — org, downloads, top model | hf_fs hub_repo_search | hf_models_search | covered |
| 280 | dev followup | what jobs have I run recently and did any fail?contextread the latest handoff and current-state notes from my continuity folder in my storage bucket and catch me up on where things stand | hf_jobs | hf_jobs_list | covered |
| 281 | dev initial | read the latest handoff and current-state notes from my continuity folder in my storage bucket and catch me up on where things stand | hf_fs | hf_buckets_list hf_repo_list_files hf_repo_read_text | covered |
| 282 | dev followup | what have Lightricks and Wan released most recently? looking for the newest video gen checkpointscontextShortlisting open TTS for a voice product. Give me downloads/likes/license for Kokoro-82M, Chatterbox (+turbo), Dia 1.6B and Dia2, Orpheus 3B, Sesame CSM-1B, Higgs Audio v2, VibeVoice 1.5B, NeuTTS Air, XTTS-v2, F5-TTS, CosyVoice2, IndexTTS-2, Spark-TTS. | hf_fs hub_repo_search | hf_models_search | covered |
| 283 | dev followup | what license is MiniMax-H3 under? read the actual LICENSE filecontextShortlisting open TTS for a voice product. Give me downloads/likes/license for Kokoro-82M, Chatterbox (+turbo), Dia 1.6B and Dia2, Orpheus 3B, Sesame CSM-1B, Higgs Audio v2, VibeVoice 1.5B, NeuTTS Air, XTTS-v2, F5-TTS, CosyVoice2, IndexTTS-2, Spark-TTS. | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 284 | dev initial | Shortlisting open TTS for a voice product. Give me downloads/likes/license for Kokoro-82M, Chatterbox (+turbo), Dia 1.6B and Dia2, Orpheus 3B, Sesame CSM-1B, Higgs Audio v2, VibeVoice 1.5B, NeuTTS Air, XTTS-v2, F5-TTS, CosyVoice2, IndexTTS-2, Spark-TTS. | hf_fs hub_repo_details | hf_models_search | covered |
| 285 | dev followup | open up the top one — license, base model and how many steps it's meant forcontextIs there a FLUX that's been distilled down to 1-4 steps, LCM or turbo style, that loads in diffusers? Most downloaded first. | hf_fs hub_repo_details | hf_repo_info hf_repo_read_text | covered |
| 286 | dev initial | Is there a FLUX that's been distilled down to 1-4 steps, LCM or turbo style, that loads in diffusers? Most downloaded first. | hf_fs hub_repo_search | hf_models_search | covered |
| 287 | held-out followup | any papers on making diffusion fast on Apple silicon?contextI want to run SD 1.5 on my M2 MacBook — are there MLX or Core ML converted weights somewhere? | hf_fs | hf_papers_search | covered |
| 288 | held-out followup | is there a demo I can try in the browser first?contextI want to run SD 1.5 on my M2 MacBook — are there MLX or Core ML converted weights somewhere? | dynamic_space hf_fs hub_repo_search | hf_spaces_search | covered |
| 289 | held-out initial | I want to run SD 1.5 on my M2 MacBook — are there MLX or Core ML converted weights somewhere? | hf_fs hub_repo_search | hf_models_search | covered |
| 290 | dev followup | are there other python-edu derivatives out there?contextcompare some-user/Annoy-PyEdu-Rs and its -Raw sibling with HuggingFaceTB's python-edu-scores / python-edu-annotations: configs, sizes, columns, what's different | hf_fs hub_repo_search | hf_datasets_search hf_repo_fulltext_search ★ | covered |
| 291 | dev initial | compare some-user/Annoy-PyEdu-Rs and its -Raw sibling with HuggingFaceTB's python-edu-scores / python-edu-annotations: configs, sizes, columns, what's different | hf_fs hub_repo_details | hf_dataset_structure hf_repo_info | covered |
| 292 | dev followup | narrow it to Qwen3-VL, InternVL and Pixtral — what's trending in those families?contextwhich trending vision-language models and 30B+ chat models can I call right now via serverless inference providers? give me the provider list and param count for each | hf_fs hub_repo_search | hf_models_search | covered |
| 293 | dev initial | which trending vision-language models and 30B+ chat models can I call right now via serverless inference providers? give me the provider list and param count for each | hf_fs hub_repo_details hub_repo_search | hf_models_search | covered |
| 294 | dev followup | show me a few rows from the python-edu config of smollm-corpus so I can compare the fieldscontextSomeone uploaded two datasets called PyEdu-Rs and PyEdu-Rs-Raw. Are these just repackaged from HuggingFaceTB's python-edu data? Compare their cards and file layout with the original. | hub_repo_details | hf_dataset_rows | covered |
| 295 | dev initial | Someone uploaded two datasets called PyEdu-Rs and PyEdu-Rs-Raw. Are these just repackaged from HuggingFaceTB's python-edu data? Compare their cards and file layout with the original. | hf_fs hub_repo_details hub_repo_search | hf_repo_read_text hf_repo_list_files | covered |
| 296 | held-out initial | is there an image generator I can call from here? something like flux schnell or krea — what inputs does it take? | dynamic_space | hf_spaces_search hf_space_tools | covered |
| 297 | dev followup | and where's the official LTX-Video 2.3 checkpoint from Lightricks? list the files with sizescontextMy ComfyUI workflow wants taeltx2_3.safetensors — which repo is that file in? | hf_fs hub_repo_search | hf_models_search hf_repo_list_files | covered |
| 298 | dev initial | My ComfyUI workflow wants taeltx2_3.safetensors — which repo is that file in? | hf_fs hub_repo_search | hf_models_search hf_repo_fulltext_search ★ hf_repo_list_files | partial PARTIAL: there is no global file-name index on the Hub. Name search + README full-text + per-repo path search is best effort (legacy had the same gap). |
| 299 | held-out initial | I want to make an image with Qwen-Image without installing anything — what inputs does the hosted demo take? | dynamic_space | hf_spaces_search hf_space_tools | covered |
| 300 | dev followup | how's that run going? any errors in the logs?contextKick off a GPU job (L4, 3h max) over my dialogs dataset: mount it read-only along with NVIDIA's Nemotron diarization model, diarize each call, tag topics, raised-voice arguments and friendliness of tone, and write a report.json back to the dataset. | hf_jobs | hf_jobs_list hf_job_logs | covered |
| 301 | dev followup | Show me the report it produced.contextKick off a GPU job (L4, 3h max) over my dialogs dataset: mount it read-only along with NVIDIA's Nemotron diarization model, diarize each call, tag topics, raised-voice arguments and friendliness of tone, and write a report.json back to the dataset. | hf_fs | hf_repo_read_text | covered |
| 302 | dev initial | Kick off a GPU job (L4, 3h max) over my dialogs dataset: mount it read-only along with NVIDIA's Nemotron diarization model, diarize each call, tag topics, raised-voice arguments and friendliness of tone, and write a report.json back to the dataset. | hf_jobs | hf_job_run hf_hardware_flavors ★ | covered Write-back happens inside the Job (huggingface_hub), not through hf_repo_write_files. |
| 303 | dev initial | what have I got on my account? models, datasets, spaces — latest first | hf_fs hf_whoami hub_repo_search | hf_whoami hf_models_search hf_datasets_search hf_spaces_list | covered |
| 304 | dev followup | how is VBVR-Pro different from the base Wan2.2-TI2V-5B? read both cardscontextwhat are the go-to open video gen models right now? wan 2.2, hunyuanvideo, ltx, cogvideox — which ones are people actually downloading | hf_fs hub_repo_details | hf_repo_read_text | covered |
| 305 | dev followup | can I try Wan 2.2 somewhere for free? zerogpu preferablycontextwhat are the go-to open video gen models right now? wan 2.2, hunyuanvideo, ltx, cogvideox — which ones are people actually downloading | dynamic_space hf_fs hub_repo_search | hf_spaces_list hf_spaces_search | covered |
| 306 | dev initial | what are the go-to open video gen models right now? wan 2.2, hunyuanvideo, ltx, cogvideox — which ones are people actually downloading | hf_fs hub_repo_search | hf_models_search | covered |
| 307 | dev followup | how would I call that same app from my own python script? check the gradio client docscontextmake me an image with flux krea — what parameters can I set? | hf_fs | hf_docs_search hf_docs_read | covered |
| 308 | dev initial | make me an image with flux krea — what parameters can I set? | dynamic_space | hf_spaces_search hf_space_tools | covered |
| 309 | dev followup | is there a public transfer-cube benchmark for SO-101 arms with trained ACT or diffusion policies? show the dataset stats and the diffusion policy's training configcontextLeRobot published a write-up on teaching a robot to fold clothes — summarize how much data they collected, how they trained, how they evaluated and what the ablations showed. | hf_fs hub_repo_search | hf_datasets_search hf_models_search hf_dataset_structure hf_repo_read_text | covered |
| 310 | dev initial | LeRobot published a write-up on teaching a robot to fold clothes — summarize how much data they collected, how they trained, how they evaluated and what the ablations showed. | hf_fs hub_repo_search | hf_repo_fulltext_search ★ hf_docs_search | partial PARTIAL: blog posts are not covered by any tool (the Hub API exposes /api/blog/community only). Full-text/docs search are fallbacks; same gap in legacy. |
| 311 | held-out followup | before you kick it off, do I already have anything running?contextLoRA-finetune a small instruct model on dolly-15k for me on cloud GPUs. find the right dataset repo first | hf_jobs | hf_jobs_list | covered |
| 312 | held-out initial | LoRA-finetune a small instruct model on dolly-15k for me on cloud GPUs. find the right dataset repo first | hf_fs hf_jobs hub_repo_search | hf_datasets_search hf_job_run hf_hardware_flavors ★ | covered |
| 313 | held-out followup | which spaces can you actually call as tools? I want to generate an image — what parameters does FLUX schnell take?contextgive me a quick rundown of today's top AI papers | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_space_tools | covered |
| 314 | held-out followup | what text classification models are trending?contextgive me a quick rundown of today's top AI papers | hf_fs hub_repo_search | hf_models_search | covered |
| 315 | held-out initial | give me a quick rundown of today's top AI papers | hf_fs | hf_daily_papers | covered |
| 316 | dev initial | what python education / code datasets has HuggingFaceTB put out? the PythonEdu stuff — sizes and schema | hf_fs hub_repo_details hub_repo_search | hf_datasets_search hf_dataset_structure | covered |
| 317 | dev followup | How do I load it in diffusers? Find the docs page for the Flux2 pipeline.contextwhat's the repo id for flux2 klein? the small text-to-image one from Black Forest Labs | hf_fs | hf_docs_search hf_docs_read | covered |
| 318 | dev initial | what's the repo id for flux2 klein? the small text-to-image one from Black Forest Labs | hf_fs hub_repo_search | hf_models_search | covered |
| 319 | dev initial | Set up a new public model repo on my account for my Qwen3 productivity-assistant fine-tune. Check I don't already have something with that name first. | create_repo hf_whoami hub_repo_search | hf_whoami hf_models_search hf_repo_create | covered |
| 320 | dev followup | find the paper behind itcontextwhat's OmniVoice from k2-fsa? is there a demo I can run and are the weights released? | hf_fs | hf_paper_get hf_papers_search | covered |
| 321 | dev initial | what's OmniVoice from k2-fsa? is there a demo I can run and are the weights released? | dynamic_space hf_fs hub_repo_details hub_repo_search | hf_models_search hf_spaces_list hf_spaces_search | covered |
| 322 | dev followup | is it done? check the job logs and read task_status.json from the depth_only folder of the results datasetcontextRun my depth-render Space on the facade test images. It takes a while, so kick it off as a background job that calls the Space and writes results into my results dataset. | hf_fs hf_jobs | hf_job_logs hf_repo_read_text | covered |
| 323 | dev initial | Run my depth-render Space on the facade test images. It takes a while, so kick it off as a background job that calls the Space and writes results into my results dataset. | dynamic_space hf_jobs | hf_space_tools hf_job_run | covered Calls a Space from inside a Job (gradio_client); hf_space_tools reads the schema first. |
| 324 | dev initial | does transformers support DeepSeek V4 yet? what's the model class and config called for deepseek_v4? | hf_fs | hf_docs_search hf_docs_read | covered |
| 325 | dev followup | it keeps erroring. how do I add a Gradio app as a tool in my MCP settings on the hub?contextread this line out in Japanese for me: 'おはようございます、今日もよろしくお願いします' — use whatever online TTS demo works, Chatterbox multilingual maybe | hf_fs | hf_docs_search | covered |
| 326 | dev initial | read this line out in Japanese for me: 'おはようございます、今日もよろしくお願いします' — use whatever online TTS demo works, Chatterbox multilingual maybe | dynamic_space hf_fs | hf_spaces_search hf_space_tools hf_space_invoke | covered |
| 327 | held-out followup | ugh, no PRO. just make it a public model repo with the same name instead and show me what's in itcontextset up a new public gradio space called portfolio-studio under my account | create_repo | hf_repo_create hf_repo_list_files | covered |
| 328 | held-out initial | set up a new public gradio space called portfolio-studio under my account | create_repo | hf_repo_create | covered |
| 329 | dev followup | Is microsoft/TRELLIS.2 actually MCP-enabled? Check that and the community TRELLIS space, and tell me the SDK/hardware each runs on.contextI want Claude to be able to make 3D meshes from a prompt or image. Find me a hosted demo I can hook up as a tool — TRELLIS would be ideal. | hf_fs hub_repo_details | hf_repo_info hf_spaces_list | covered |
| 330 | dev initial | I want Claude to be able to make 3D meshes from a prompt or image. Find me a hosted demo I can hook up as a tool — TRELLIS would be ideal. | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_spaces_list | covered |
| 331 | dev followup | what about MiniCPM5 2B — find it, show me the config and the chat template, and check if openbmb did a ggufcontextneed a really small LLM for on-device. how big are Qwen3.5-0.8B and 2B actually on disk, and is there a gguf for the 0.8B? | hf_fs hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 332 | dev followup | throw granite 4.2 3b and gemma 4 E2B into the comparison too — hidden size / layers from config, and quantized versionscontextneed a really small LLM for on-device. how big are Qwen3.5-0.8B and 2B actually on disk, and is there a gguf for the 0.8B? | hf_fs hub_repo_search | hf_models_search hf_repo_read_text | covered |
| 333 | dev initial | need a really small LLM for on-device. how big are Qwen3.5-0.8B and 2B actually on disk, and is there a gguf for the 0.8B? | hf_fs hub_repo_details | hf_repo_info hf_models_search | covered |
| 334 | dev followup | which of those are actually running, and on what hardware?contextanyone hosting ToonCrafter? I want to interpolate between two cartoon keyframes without installing it | hub_repo_details | hf_spaces_list | covered |
| 335 | dev initial | anyone hosting ToonCrafter? I want to interpolate between two cartoon keyframes without installing it | dynamic_space hf_fs hub_repo_search | hf_spaces_search hf_spaces_list | covered |
| 336 | dev followup | ok, any demo apps where I can upload a reference clip and test cloning?contextCan Qwen3-TTS 1.7B CustomVoice clone a voice from a short reference recording, or is it only preset speakers? | dynamic_space hf_fs hub_repo_search | hf_spaces_search | covered |
| 337 | dev followup | and CosyVoice 3 / 3.5 — what checkpoints are out?contextCan Qwen3-TTS 1.7B CustomVoice clone a voice from a short reference recording, or is it only preset speakers? | hf_fs hub_repo_search | hf_models_search | covered |
| 338 | dev initial | Can Qwen3-TTS 1.7B CustomVoice clone a voice from a short reference recording, or is it only preset speakers? | hf_fs hub_repo_details hub_repo_search | hf_repo_read_text hf_models_search | covered |
End-to-end deterministic benchmark set (141)
Audited deterministic benchmark prompts split into non-quarantined active tasks (clean inline + tabular CSV artifact tasks) and quarantined tasks (excluded from headline scores due to weak grounding, live drift, or underspecified oracles).
det92-clean suite
det67-clean
tabular25
det49-quarantine
38 people, 25 repo, 17 dataset, 13 search, 11 papers, 11 collections, 11 docs, 10 spaces, 3 account, 2 jobs.
| # | Status | Family | Prompt | Expected PTC tools | Legacy tools | Rubric / Quarantine Note |
|---|---|---|---|---|---|---|
| 1 | active · inline SOLID v2:ch-gpt2-params | repo single | Return a compact JSON object for model "openai-community/gpt2" with exactly repo_id and num_params. | hf_repo_info | hub_repo_details hf_fs |
|
| 2 | active · inline MINOR_RISK v2:ch-mishig-profile | people chain | Tell me about user "mishig": total followers, total following, latest 10 activity events, and latest 10 likes (compact output). | hf_profile_get ★ → hf_activity ★ → hf_user_likes ★ | hub_repo_search hf_fs | `oracle_part3.py:181-195` compares 10 recent activity repos and 10 recent likes against a static snapshot (75% overlap) with no trace augmentation; 3+ new activities or likes cause false negatives. Follower/following numbers are checked anywhere in text without label binding.
|
| 3 | active · inline SOLID v2:ch-unsloth-counts | people single | How many models, datasets, and spaces does organization "unsloth" have? Return exactly a JSON object with keys organization, models, datasets, and spaces. | hf_profile_get ★ | hub_repo_search hf_fs partial |
|
| 4 | active · inline MINOR_RISK v2:cq-2236 | repo chain | Get the full details for Qwen/Qwen3-Coder-Next model. What is its architecture? How many parameters, active parameters? Is it a MoE model? What is qwen3_next architecture? Also check what eval-results it has - it has the eval-results tag. What are its benchmark scores especially on coding tasks? | hf_repo_info → hf_repo_read_text | hub_repo_details hf_fs | Regex misses `3.0B` (FN) + ignores benchmarks (FP)
|
| 5 | active · inline MINOR_RISK v2:cq-3629 | repo chain | Get details for BAAI/bge-multilingual-gemma2 - model size, parameters, performance benchmarks, supported languages | hf_repo_info → hf_repo_read_text | hub_repo_details hf_fs | Scale bug on `9.2B` (FN) + generic keyword checks (FP)
|
| 6 | active · inline MINOR_RISK v2:cq-3944 | people compare authenticated token | what models has pcuenq liked that i have also liked | hf_whoami → hf_user_likes ★ | hf_whoami | Prompt (*"what models has pcuenq liked that i have also liked"*) never asks for a pagination/coverage caveat, yet non-empty branch (`oracle_part1.py:501-502`) requires one. Also `_likes("pcuenq")` fails closed if `pcuenq` reaches 1,000 likes.
|
| 7 | active · inline SOLID v2:cq-444 | spaces chain | Find the Kokoro TTS model and any related Spaces on Hugging Face. Include model IDs, Space IDs, and links. | hf_models_search → hf_hub_lookup ★ → hf_spaces_list | hub_repo_search hf_fs hub_repo_details dynamic_space |
|
| 8 | active · inline MINOR_RISK v2:cq-4780 | papers count | List today's daily papers on Hugging Face (2026-03-21), sorted by upvotes/likes, showing the top 30 papers with their paper IDs, titles, authors, and upvote counts. Focus on trending and most-upvoted papers of the day. | hf_daily_papers | hf_fs | 2026-03-21 is a **Saturday** (HF Daily Papers publishes Mon–Fri). When the API returns empty, `oracle_part2.py:261` only matches `no papers\
|
| 9 | active · inline SOLID v2:cq-53 | people count authenticated token | For the currently authenticated user, find their followers on the Hugging Face Hub and determine whether any of those followers have liked any model repositories under the organization 'google'. Return the follower usernames and the google model repo ids they liked. If none, say none found. Use current Hub data and preserve any coverage caveats. | hf_whoami → hf_follow_graph ★ → hf_user_likes ★ | hf_whoami |
|
| 10 | active · inline SOLID v2:cq-618 | repo chain | what is the license of stack-edu? | hf_hub_lookup ★ → hf_datasets_search → hf_repo_info → hf_repo_read_text | hub_repo_search hub_repo_details hf_fs |
|
| 11 | active · inline SOLID v2:cq-7245 | search chain | Search for any models, datasets, spaces, or discussions that mention "Radeon PRO V620" or "V620 GPU" specifications or compute units | hf_repo_fulltext_search ★ → hf_discussions_list ★ | hub_repo_search hf_fs |
|
| 12 | active · inline SOLID v2:cq-7649 | people chain | Show me the organization profile for wilhelm-foundation including description, avatar, and any README content | hf_profile_get ★ → hf_repo_read_text | hub_repo_search hf_fs partial |
|
| 13 | active · inline MINOR_RISK v2:cq-7738 | search single | Find quantized Qwen3 models from the major quantization providers: unsloth, bartowski, mradermacher, lmstudio-community. Search for models with "Qwen3" in the name from these authors. Return top results sorted by downloads. | hf_models_search | hub_repo_search hf_fs | Prompt asks for top Qwen3 models by downloads from 4 quantization providers. `strict.py:476-478` requires repo ID and exact integer download count on the **same line**, failing if the agent formats each model across multiple bullet lines.
|
| 14 | active · inline MINOR_RISK v2:cq-863 | people compare authenticated token | For the current authenticated user, compute the overlap between my followers and the members of the 'huggingface' organization. Return usernames and display names, and say whether the result is complete. | hf_whoami → hf_follow_graph ★ → hf_org_members ★ | hf_whoami | Empty branch (`rules_v2.py:93`) requires literal substring `has("complete")` (fails synonyms like `"exhaustive"`/`"full"`/`"all 0 followers checked"`). Non-empty branch (`oracle_part1.py:503-504`) requires unrequested `public\
|
| 15 | active · inline MINOR_RISK v2:csv-10907 | repo count | Get the file tree / list of all files in the Lightricks/LTX-Video model repository on Hugging Face. I need to see all .safetensors files, especially VAE files. | hf_repo_list_files | hf_fs hub_repo_details | Prompt asks for all `.safetensors` files in `Lightricks/LTX-Video`. `rules_v2` requires `all(...)` (100% of `.safetensors` files with zero slack). If total repo files exceed ~25, `RESPONSE_GUIDELINES` ("include at least 10–20 representative items inline") can cause a compliant agent to truncate.
|
| 16 | active · inline MINOR_RISK v2:csv-12020 | collections count | List all collections owned by the organization "twelvelabs" | hf_collections_search | hf_fs | Prompt asks only to *"List all collections owned by the organization 'twelvelabs'"*, but `oracle_part1.py:474,497-498` requires **both** opaque 24-hex slugs (`o["items"]`) AND exact titles (`o["titles"]`).
|
| 17 | active · inline SOLID v2:csv-13999 | repo single | For repo Qwen/Qwen3.5-4B, list the top-level files related to tokenizer, processor, image preprocessing, chat template, and config that would matter for local conversion or inference. Keep it concise. | hf_repo_list_files | hf_fs hub_repo_details |
|
| 18 | active · inline SOLID v2:csv-16020 | docs chain | How to set a HuggingFace Space to public using the API? What is the correct endpoint and method? | hf_docs_search → hf_docs_read | hf_fs |
|
| 19 | active · inline MINOR_RISK v2:csv-17650 | collections compare | Find collections by EleutherAI related to Pythia, and collections by allenai related to OLMo. Also find collections by LLM360. | hf_collections_search | hf_fs | `strict.py:128-136` only checks `any(...)` — listing 1 collection each for `eleutherai`/`allenai`/`ifm` passes 100% (misses remaining collections). Conversely, `listed(a, pool)` requires full `owner/<slug>-<24hex>` slugs; reporting collection titles without 24-hex slugs fails.
|
| 20 | active · inline SOLID v2:csv-19312 | papers chain | Search for the paper arxiv 2506.05176 which is the Qwen3-Embedding paper. What MTEB scores does Qwen3-Embedding-0.6B get compared to nomic-embed-text, mxbai-embed-large, and other embedding models? What is the embedding dimension and max sequence length? | hf_paper_get → hf_paper_read | hf_fs hub_repo_details |
|
| 21 | active · inline MINOR_RISK v2:csv-19886 | spaces single | What is the Gradio API endpoint for hexgrad/Kokoro-TTS space? What voices/speakers are available, especially American male? | hf_space_tools | dynamic_space | Prompt asks for the Gradio API endpoint and available voices (especially American male) for `hexgrad/Kokoro-TTS`. `strict.py` requires >=3 internal `am_<name>` voice codes (failing if an agent lists human-readable names like `Adam`, `Michael`, `Eric` without `am_` prefixes) and hardcodes that the API must be reported as disabled without checking `o["data"]["api"]`.
|
| 22 | active · inline MINOR_RISK v2:csv-20163 | people single | What discussions has kashif participated in on the google/timesfm-2.5-200m-transformers model? Show the discussion titles and dates. | hf_discussions_list ★ | no legacy path | Prompt asks what discussions `kashif` *"participated in"* and asks for *"titles and dates"*. `oracle_part3.py:89-90` only captures discussions *authored* by `kashif` (ignoring comment-only participation), and neither `oracle_part3.py` nor `rules_v2.py:170-171` checks any dates at all.
|
| 23 | active · inline MINOR_RISK v2:csv-20475 | repo chain | Show key repo metadata and file names for model google/gemma-4-E2B-it. Include siblings/files if available, especially config.json, tokenizer.json, tokenizer_config.json, processor_config.json, preprocessor_config.json, chat_template, generation_config, model.safetensors or sharded safetensors. Keep output compact. | hf_repo_info → hf_repo_list_files | hub_repo_details hf_fs | Prompt asks for "key repo metadata and file names" for `google/gemma-4-E2B-it`. Scorer ignores the captured `model` metadata and only checks 80% overlap of filtered filenames. Also `tree(..., negative=True)` stores `{'unavailable': True}` with `ok=True` on 401/403/404, which causes `files=[]` and a guaranteed score failure with `oracle_ok=True` if ever gated.
|
| 24 | active · inline SOLID v2:csv-20648 | docs single | What are Hugging Face Collections? Specifically, can a collection contain arbitrary files like a CSV, or only Hub repositories/resources such as models, datasets, spaces, and papers? Answer briefly with the supported item types if possible. | hf_docs_search | hf_fs |
|
| 25 | active · inline SOLID v2:csv-23347 | papers single | Find the paper "Mem-alpha: Learning Memory Construction via Reinforcement Learning" by Yu Wang et al. 2025. What is the arXiv ID? | hf_papers_search | hf_fs hub_repo_search hub_repo_details |
|
| 26 | active · inline MINOR_RISK v2:csv-25884 | dataset compare | For these datasets, give me the number of rows in each split and the column names: roneneldan/TinyStories, Abirate/english_quotes, dair-ai/emotion, Salesforce/wikitext (config wikitext-2-raw-v1), google-research-datasets/poem_sentiment | hf_dataset_structure | hub_repo_details | Prompt specifies `(config wikitext-2-raw-v1)` for `Salesforce/wikitext`, but leaves `dair-ai/emotion`'s config unspecified (it has both `split` and `unsplit`). `strict.py:503` hardcodes `config == "split"`, failing if an agent reports `unsplit`. Also `number(z["num_rows"], a)` rejects abbreviated counts like `2.12M` for TinyStories.
|
| 27 | active · inline MINOR_RISK v2:csv-28125 | repo single | For dataset repo CritPt-Benchmark/CritPt, list available files or describe how to access the file tree. If possible, specifically check whether a file named data/public_test_challenges/Challenge_60.ipynb exists. | hf_repo_paths_info → hf_repo_list_files | hf_fs hub_repo_details | If `exists == True`, `oracle_part1.py:456-457` requires `file size`, which the prompt never asks for. If `exists == False`, `rules_v2.py:175-176` doesn't require `obs("critpt-benchmark/critpt")` when `Challenge_60.ipynb` is echoed from the prompt. Also recursive tree capture fails closed at 1,000 files.
|
| 28 | active · inline SOLID v2:csv-28176 | docs chain | How do I use the Hugging Face Hub API to commit a file to a space repository? Specifically the /api/spaces/{repo_id}/commit/{branch} endpoint format and required request body. | hf_docs_search → hf_docs_read | hf_fs |
|
| 29 | active · inline MINOR_RISK v2:csv-28458 | dataset single | Get the first 3 rows from the dataset nvidia/Nemotron-Terminal-Corpus, config skill_based_mixed, split train. Show the structure of the conversations field. | hf_dataset_rows | hub_repo_details | Doesn't verify actual row content
|
| 30 | active · inline MINOR_RISK v2:csv-28988 | repo chain | For Qwen/Qwen3-4B-Thinking-2507: what are the recommended generation parameters (temperature, top_p, max_new_tokens) and what exact think-tag format does it emit? Does it use <think>...</think> or <thinking>...</thinking>? Does the chat template automatically open a <think> tag? | hf_repo_read_text → hf_repo_info | hf_fs hub_repo_details | Ignores final yes/no question
|
| 31 | active · inline SOLID v2:csv-34288 | dataset single | What are the schema fields in AI-MO/NuminaMath-CoT dataset? Show row count per split and field names | hf_dataset_structure | hub_repo_details |
|
| 32 | active · inline SOLID v2:csv-38706 | repo single | List all files in the onnx/ directory of model Xenova/whisper-small | hf_repo_list_files | hf_fs hub_repo_details |
|
| 33 | active · inline MINOR_RISK v2:csv-39095 | papers single | List models on Hugging Face Hub with arxiv:2504.08388 (MineWorld) OR arxiv:2508.19320 (MIDAS) OR arxiv:2512.04519 (VideoSSM). Return repo IDs, license, downloads, likes, tags. | hf_models_search | hub_repo_search hf_fs | When `empty_models` is True, `rules_v2.py:184-185` is solid. If models exist (`oracle_part3.py:147-153`), `all(contains_ci(ans, x) for x in ('license','downloads','likes','tags'))` fails on singular forms (`1 like`, `1 download`, `Tag:`) and does not verify actual license/download/like/tag values.
|
| 34 | active · inline SOLID v2:csv-42562 | repo single | Get the latest commit SHA on the main branch for the model repo Qwen/Qwen2.5-0.5B-Instruct. I need the exact full commit hash (sha) of the current HEAD of the main branch, plus the commit date and commit title if available. | hf_repo_history ★ → hf_repo_info | hf_fs hub_repo_details |
|
| 35 | active · inline MINOR_RISK v2:csv-42719 | people single | get number of repositories for user huggingface | hf_profile_get ★ | hub_repo_search hf_fs partial | Prompt: *"get number of repositories for user huggingface"* (singular total, and calls org a "user"). `oracle_part3.py:207-210` requires ALL FOUR numbers: `numModels`, `numDatasets`, `numSpaces`, AND `total`. An agent reporting only the total fails 3/4 gates.
|
| 36 | active · inline MINOR_RISK v2:csv-450 | dataset chain | For dataset Babelscape/wikineural: what is the correct way to load only Russian data? The config name "ru" doesn't work, only "default" is available. How do I filter by language after loading? What is the exact field name for language filtering? | hf_dataset_structure → hf_dataset_rows | hub_repo_details hf_fs | Ignores second half of prompt
|
| 37 | active · inline SOLID v2:csv-8503 | repo single | Download and show me the contents of the file at Anthropic/EconomicIndex dataset, path: release_2026_01_15/data_documentation.md | hf_repo_read_text | hf_fs hub_repo_details |
|
| 38 | active · inline SOLID v2:hand-chat-template | repo single | What chat template and BOS/EOS tokens does unsloth/Qwen3-8B-GGUF ship with? | hf_repo_info → hf_repo_read_text | hub_repo_details hf_fs |
|
| 39 | active · inline SOLID v2:hand-docs-inference | docs single | How do I pick a specific inference provider when calling a model through the Hugging Face router with the OpenAI client? | hf_docs_search | hf_fs |
|
| 40 | active · inline MINOR_RISK v2:hand-docs-product | docs chain | How do I write a custom reward function for TRL GRPOTrainer? What signature does it need? | hf_docs_search → hf_docs_read | hf_fs | Unrequested parameter name (FN)
|
| 41 | active · inline MINOR_RISK v2:hand-image-read | repo chain | Open the benchmark chart image in the deepseek-ai/DeepSeek-R1 repo and tell me what it compares. | hf_repo_list_files → hf_repo_read_image | hf_fs hub_repo_details | Unrequested relative file path (FN)
|
| 42 | active · inline MINOR_RISK v2:hand-job-flavors | jobs single | Which GPUs can I run Jobs on, and how much VRAM does the a100-large flavor have? | hf_hardware_flavors ★ | hf_jobs | `rules_v2.py:151` strips `x\d+$` from flavor names without stripping a preceding hyphen (`l40s-x4` → `l40s-` → `l40s[- ]`), which fails when followed by `,`/newline. Also memorizable without checking hardware API/docs in `evidence_text`.
|
| 43 | active · inline MINOR_RISK v2:hand-my-buckets | account chain authenticated token | List my storage buckets. | hf_whoami → hf_buckets_list | hf_whoami hf_fs | Empty-account branch (`rules_v2.py:197`) requires `whoami\
|
| 44 | active · inline MINOR_RISK v2:hand-my-repo-discussions | people chain authenticated token | Are there any open discussions or pull requests on my repositories that I have not answered? | hf_whoami → hf_discussions_list ★ | hf_whoami | Solid for empty test account (`rules_v2.py:195-197`), but non-empty branch (`oracle_part1.py:484-492`) requires `author` and `createdAt` dates even though prompt only asks *"Are there any open discussions or pull requests on my repositories that I have not answered?"*
|
| 45 | active · inline MINOR_RISK v2:hand-org-activity | people single | What has the huggingface org been publishing this week? Show me its activity feed. | hf_activity ★ | no legacy path | `oracle_part3.py:77,183-189` snapshots 100 events for high-volume org `huggingface` without trace augmentation (stale snapshot risks drift), while passing if just 3 active employee handles (e.g. `julien-c`, `merve`, `thomwolf`) appear anywhere in the answer without checking actual events.
|
| 46 | active · inline SOLID v2:hand-org-member-count | people single | How many members does the Qwen organization have on Hugging Face? | hf_profile_get ★ | hub_repo_search hf_fs partial |
|
| 47 | active · inline MINOR_RISK v2:hand-org-write | account single authenticated token | Which of my organizations am I allowed to create repositories in? | hf_whoami | hf_whoami | Non-empty branch (`oracle_part1.py:474`) checks only substring presence of write/admin orgs without penalizing inclusion of read-only orgs; `roleInOrg` omits `contributor`; empty branch (`rules_v2.py:197`) hardcodes `hf-mcp-test-account`.
|
| 48 | active · inline SOLID v2:hand-profile-socials | people chain | Find the Unsloth team on Hugging Face and give me their bio and social links. | hf_hub_lookup ★ → hf_profile_get ★ | hub_repo_search hub_repo_details hf_fs partial |
|
| 49 | active · inline MINOR_RISK v2:hand-read-pr | people single | Read PR #1 on openai-community/gpt2 and summarise the comments. | hf_discussion_get ★ | no legacy path | Unrequested `"closed"` status (FN)
|
| 50 | active · inline SOLID v2:hand-rows-filter | dataset single | Show me 5 negative reviews from the stanfordnlp/imdb test split. | hf_dataset_rows | hub_repo_details |
|
| 51 | active · inline MINOR_RISK v2:hand-space-likes | people single | Which Spaces has merve liked recently? | hf_user_likes ★ | no legacy path | `strict.py:142-156` (7/20 or 3/20 with scope) tolerates moderate drift well, but `_likes("merve")` capture fails if `merve` hits 1,000 total likes, and heavy liking (>13 new Spaces after snapshot) can still cause false negatives.
|
| 52 | active · inline SOLID v2:syn-docs-datasets-streaming | docs single | According to the Hugging Face datasets documentation, how do you load a dataset in streaming mode with load_dataset without downloading the full dataset to disk? | hf_docs_search → hf_docs_read | hf_fs |
|
| 53 | active · inline SOLID v2:syn-docs-diffusers-pipeline | docs single | In Hugging Face diffusers, what is the standard class method used to load a pretrained diffusion pipeline from the Hub? | hf_docs_search → hf_docs_read | hf_fs |
|
| 54 | active · inline SOLID v2:syn-docs-hf-cli-download | docs single | According to the Hugging Face Hub documentation, what CLI command and flag downloads a model repository into a specific local directory (instead of only the cache)? | hf_docs_search → hf_docs_read | hf_fs |
|
| 55 | active · inline MINOR_RISK v2:syn-docs-transformers-device-map | docs single | In Hugging Face transformers, what parameter and value passed to from_pretrained automatically distributes a large model across available GPUs/CPU? | hf_docs_search → hf_docs_read | hf_fs | Rigid `=` syntax regex (FN)
|
| 56 | active · inline SOLID v2:syn-ds-gsm8k-structure | dataset single | For the dataset openai/gsm8k, what configs/subsets and splits are available? | hf_dataset_structure | hub_repo_details hf_fs |
|
| 57 | active · inline SOLID v2:syn-ds-imdb-first-row | dataset single | Inspect the first row (offset 0) of stanfordnlp/imdb (config plain_text, split train). List its column names and quote the opening words of the text field. | hf_dataset_rows | hub_repo_details |
|
| 58 | active · inline SOLID v2:syn-ds-mmlu-configs | dataset count | How many configs/subsets does the dataset cais/mmlu have on Hugging Face? | hf_dataset_structure | hub_repo_details hf_fs |
|
| 59 | active · inline SOLID v2:syn-ds-squad-splits | dataset count | For the dataset rajpurkar/squad, list all available splits and their exact row counts. | hf_dataset_structure | hub_repo_details hf_fs |
|
| 60 | active · inline SOLID v2:syn-kernels-community-top | search single | Find the top 10 most downloaded kernel repositories under the kernels-community organization on Hugging Face. | hf_models_search | hub_repo_search hf_fs hub_repo_details |
|
| 61 | active · inline MINOR_RISK v2:syn-kernels-flash-attn3 | repo single | Inspect the Hugging Face repository kernels-community/flash-attn3. What license does it use, and what top-level files/directories are in the repo (including whether benchmark.py exists)? | hf_repo_info → hf_repo_list_files | hub_repo_details hf_fs hub_repo_search | Ignores other top-level files
|
| 62 | active · inline MINOR_RISK v2:syn-openenv-spaces-compare | spaces compare | Compare the Hugging Face Spaces openenv/coding_env and openenv/echo_env: report the SDK and current hardware flavor for each. | hf_repo_info → hf_spaces_list | hub_repo_details hf_fs hub_repo_search dynamic_space | `sdk` unchecked + hyphen fragility
|
| 63 | active · inline SOLID v2:syn-paper-attention-meta | papers single | Look up arXiv paper 1706.03762 on Hugging Face Papers. Return its exact title and list all authors. | hf_paper_get | hf_fs |
|
| 64 | active · inline SOLID v2:syn-paper-deepseek-r1 | papers single | Look up the DeepSeek-R1 paper (arXiv 2501.12948) on Hugging Face Papers. Return its exact title, arXiv ID, and current upvote count. | hf_paper_get | hf_fs |
|
| 65 | active · inline SOLID v2:syn-paper-qwen25-meta | papers single | Look up arXiv paper 2412.15115 on Hugging Face Papers. Return its exact title and how many authors are listed. | hf_paper_get | hf_fs |
|
| 66 | active · inline MINOR_RISK v2:syn-repo-bert-history | repo single | Check the commit history of google-bert/bert-base-uncased on main and return the latest commit SHA (or short hash) and commit title. | hf_repo_history ★ | hf_fs hub_repo_details partial | `or` instead of `and`
|
| 67 | active · inline SOLID v2:syn-repo-gpt2-safetensors-size | repo single | What is the exact file size (in bytes or MB) of model.safetensors in openai-community/gpt2? | hf_repo_paths_info → hf_repo_list_files | hf_fs hub_repo_details |
|
| 68 | active · tabular CSV FLAKY_OR_UNFAIR v2:ch-julien-likes | people count | What is the most popular repository that julien-c has liked recently? Rank by repo_likes and include coverage metadata. | hf_user_likes ★ | no legacy path | Prompt asks *"What is the most popular repository that julien-c has liked recently?"* without defining a window size. `oracle_part3.py:70,177-180` hardcodes `likes[:30]` and checks only `repos[0]`. An agent scanning the latest 20, 50, or 100 likes can legitimately get a different #1 repo and fail. Also `coverage` passes on the prompt word `"recent"` alone.
|
| 69 | active · tabular CSV MINOR_RISK v2:ch-mishig-activity-ds | people count | Show the 25 most recent activity events for user "mishig", but only dataset or space events. Return compact JSON rows with event_type, repo_id, repo_type, and timestamp, omitting missing fields. | hf_activity ★ | no legacy path | Prompt says *"omitting missing fields"*, but `strict.py:434` enforces `set(r) == want` (all 4 keys mandatory) and exact raw string match on `timestamp` (`key(r) in refs`), failing if an agent strips milliseconds (`Z` vs `.000Z`) or uses `+00:00`.
|
| 70 | active · tabular CSV FLAKY_OR_UNFAIR v2:ch-mteb-pro-likers | people count | For space mteb/leaderboard, return 20 pro likers with only username, type, and isPro. | hf_repo_likers ★ | no legacy path | Prompt doesn't mandate bare JSON array or 3-col markdown table; `rules_v2.py:158-163` + `oracle_part1.py:409-416` reject wrapped JSON `{"likers": [...]}` (dict, not list), numbered lists, and 4-col tables with a `#` index column. Also vulnerable to live drift against snapshot's first 1,000 likers.
|
| 71 | active · tabular CSV MINOR_RISK v2:ch-qwen-pro-likers | people count | How many pro users liked model "Qwen/Qwen3.5-32B"? Return exactly {repo_id, repo_type, pro_likers}. | hf_repo_likers ★ | no legacy path | Currently 404 (`Qwen/Qwen3.5-32B` doesn't exist), where `rules_v2.py:164-165` expects prose refusal (`DEN`), slightly conflicting with prompt's *"Return exactly {repo_id, repo_type, pro_likers}"*. If the model ever exists, `oracle_part3.py:109-110` crashes at >=1000 likers and checks exact integer equality with zero drift tolerance.
|
| 72 | active · tabular CSV WEAK_GROUNDING v2:cq-3164 | collections chain | Find the official Qwen3.5 collection and get details about the available models, their sizes, and capabilities | hf_collections_search → hf_collection_get → hf_repo_info | hf_fs | Partial answer / ignores key prompt asks (FP)
|
| 73 | active · tabular CSV SOLID v2:cq-7327 | dataset compare | Get details for these datasets - row counts and description: timdettmers/openassistant-guanaco, OpenAssistant/oasst2, HuggingFaceH4/ultrachat_200k | hf_dataset_structure | hub_repo_details |
|
| 74 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-13349 | spaces count | List all spaces with the openenv tag, sorted by likes, show name, author, likes, tags, and description | hf_spaces_list | hub_repo_search hf_fs | `strict.py:167-178` requires: (1) `owner/name` and exact `likes` on the **same line** (rejects multi-line bullets/JSON); (2) global descending sort across *all* lines mentioning any space+likes (a summary callout breaks sort); (3) literal substrings `"description"` and `"tag"` (fails if table headers say `Summary`/`Labels`); (4) `total` regex `(\d+)\s+...spaces` misses `"Total: 152"` and requires `n` verbatim in tool output (`number(n, tl)`), failing if agent summed paginated results.
|
| 75 | active · tabular CSV WEAK_GROUNDING v2:csv-16267 | collections count | List all collections for these organizations: google, meta-llama, openai, Qwen, baidu, unsloth, microsoft, facebook, deepseek-ai, mistralai. Show collection title and description for each. Limit 10 collections per org. | hf_collections_search | hf_fs | Oracle drops 2/10 orgs + trivial pass threshold (FP)
|
| 76 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-20265 | spaces count | List 30 recently created spaces. Return id, likes, sdk, author, lastModified for each. | hf_spaces_list | hub_repo_search hf_fs | Prompt: *"List 30 recently created spaces. Return id, likes, sdk, author, lastModified for each."* `strict.py:318-327` requires ALL 5 fields on the **same line** for all 30/30 Spaces (`len(hits) >= 30`). Pretty-printed JSON arrays or multi-line Markdown bullets get 0 hits and fail completely.
|
| 77 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-24970 | papers count | Show me the daily papers from April 10, 11, and 12, 2026 on HuggingFace. List title, authors, date, and arxiv ID. | hf_daily_papers | hf_fs | `oracle_part1.py:466-472` requires ≥80% of **every single author** across all papers on all 3 days (hundreds of names — breaks on standard `"et al."` or truncated author lists). Also if >25 papers total, following `RESPONSE_GUIDELINES` (10–20 inline) guarantees failing the 80% threshold.
|
| 78 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-27268 | people single | List recent open discussions on Qwen/Qwen2.5-7B-Instruct model, including discussion title, author, status, and URL. Limit to 15 most recent. | hf_discussions_list ★ | no legacy path | `rules_v2.py:217-226` requires exact `len(matches) == 15` and `any(set(w) == matches for w in windows)` against a static snapshot of `Qwen/Qwen2.5-7B-Instruct` sorted by `num` descending. Any single new/closed discussion after snapshot, or sorting "most recent" by `updatedAt`, causes a false negative. Meanwhile, actual titles and authors are never verified (`has("author")` alone passes).
|
| 79 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-28464 | people count | Get all open discussions across all repos in the perplexity-ai organization. Include title, status, author, created date, number of comments, and repo name for each discussion. | hf_discussions_list ★ | no legacy path | `rules_v2.py:200-216` requires title (first 8 words), author, and repo name on the **same single line** — any grouped-by-repo (`### repo`) or multi-line bullet layout scores 0%. Also 95% threshold on 29 discussions directly contradicts `RESPONSE_GUIDELINES` (>25 items → 10–20 inline) and breaks on 2 live discussion changes; `status` and `numComments` aren't even checked.
|
| 80 | active · tabular CSV MINOR_RISK v2:csv-28631 | collections count | List all model repo IDs in the Hugging Face collection 'OpenVINO/llm'. Return only the repo IDs, one per line, no commentary. | hf_collection_get | hf_fs | `oracle_part1.py:476-477` checks `all(line in oracle["items"] for line in lines)` (case-sensitive). Fails if agent wraps output in markdown code fences (```` ``` ````) or if a new model is added to `OpenVINO/llm` after snapshot capture.
|
| 81 | active · tabular CSV MINOR_RISK v2:csv-3213 | people single | find models liked by user pcuenq | hf_user_likes ★ | no legacy path | `strict.py:142-156` is well-structured, but an agent returning *"Here are the 20 most recent models liked by pcuenq"* without stating the total or using `example()` words (`sample`/`subset`/`examples`/`representative`) fails `scope`. Capture (`_likes("pcuenq")`) breaks if `pcuenq` hits 1,000 likes.
|
| 82 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-40333 | search count | Show me trending models right now. Top 25. | hf_models_search → hf_trending | hub_repo_search hf_fs | Prompt asks for live "Top 25" trending models. Scorer requires 80% overlap (20/25) against a static snapshot. Trending models shift continuously; any snapshot older than a few hours will fail an accurate live agent.
|
| 83 | active · tabular CSV MINOR_RISK v2:csv-41229 | collections chain | Find all collections by the Qwen organization that contain "Scope" or "SAE" in their title. List collection slugs, titles, and the repos they contain. | hf_collections_search → hf_collection_get | hf_fs | `oracle_part1.py:146,474` flattens `[slug, title, *repos]` into one 80% overlap bag — an agent can omit slug and title and still pass if repos dominate; conversely, >25 repos conflicts with `RESPONSE_GUIDELINES`. Capture (`_list` limit=100) breaks if Qwen exceeds 100 collections.
|
| 84 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-4334 | spaces count | Get complete list of all Hugging Face Spaces owned by user "merve" with their runtime_stage status, ensure all spaces are returned | hf_spaces_list | hub_repo_search hf_fs | `rules_v2.py:142-143` requires `all(has(r["id"].split("/",1)[1]) for r in refs)` (100% of `merve`'s >25 Spaces!) and `all(has(r["runtime"]["stage"]) ...)`. Any single Space created/deleted after snapshot fails; following `RESPONSE_GUIDELINES` (>25 items → total + 10–20 representative items) fails; writing `"runtime error"` instead of `"RUNTIME_ERROR"` fails; stages are not bound to individual Spaces.
|
| 85 | active · tabular CSV FLAKY_OR_UNFAIR v2:csv-874 | people count | What models have users in the "huggingface" organization liked recently? | hf_org_members ★ → hf_user_likes ★ | no legacy path | Prompt only asks *"What models have users in the 'huggingface' organization liked recently?"* `strict.py:207-255` fails unless: (1) agent explicitly states how many members it sampled (`sample size` regex); (2) `(member, repo)` appear on the same line (or specific `memberCount`/`users` JSON record shape in trace). Valid CLI/script workflows with different stdout formats yield empty `pairs`/`aggregates` and fail. Also crashes with `TypeError` if `o["members"]` is a 401/403 dict.
|
| 86 | active · tabular CSV MINOR_RISK v2:hand-closed-discussions | people count | List the closed discussions on HuggingFaceTB/SmolLM3-3B and how many comments each one had. | hf_discussions_list ★ | no legacy path | `rules_v2.py:198-216` requires title words AND exact integer `numComments` on the **same line** for >=95% (10/10) of closed discussions on `SmolLM3-3B`. Multi-line bullets/JSON or writing `"no comments"` for `0` fails.
|
| 87 | active · tabular CSV FLAKY_OR_UNFAIR v2:hand-collection-contains | collections single | Which collections include the dataset HuggingFaceFW/fineweb? | hf_collections_search | hf_fs | There are 269+ collections containing `HuggingFaceFW/fineweb`. `strict.py:148-155` requires `>=80%` (~216 slugs) UNLESS `scope` is True. Because `if not coll:` skips the trace-backed count check (`strict.py:150-153`), `scope` ONLY matches exact `str(total)` (breaks on +1 live Hub drift!) or magic words in `example(clean)` (`examples`/`sample`/`subset`/`representative`). An agent writing *"There are 270 collections; here are the top 20:"* fails.
|
| 88 | active · tabular CSV SOLID v2:hand-follower-compare | people compare | Compare the follower counts of the meta-llama, mistralai and Qwen organizations on Hugging Face. | hf_profile_get ★ | hub_repo_search hf_fs partial |
|
| 89 | active · tabular CSV FLAKY_OR_UNFAIR v2:hand-following-pro | people single | List the people julien-c follows on Hugging Face and mark which of them are PRO. | hf_follow_graph ★ | no legacy path | `strict.py:179-196` overrides `oracle_part1` on 602 followed users: (1) requires **exact** integer match on both total (602) and PRO count (1 live follow/PRO change = instant fail); (2) `all(marked[x] == refs[x])` fails if any prose word collides with a username under a heading or 1 user's PRO status drifted; (3) rejects common `- username (PRO)` formatting; (4) drops `oracle_part1`'s 500-cap allowance.
|
| 90 | active · tabular CSV WEAK_GROUNDING v2:hand-following-pro-small | people count | List the people lhoestq follows on Hugging Face, give the total count, and mark which of them are PRO. | hf_follow_graph ★ | hub_repo_search hf_fs | Unchecked PRO marking + unpaginated capture (FP)
|
| 91 | active · tabular CSV MINOR_RISK v2:hand-open-prs | people single | Show me the open pull requests on meta-llama/Llama-3.1-8B-Instruct. | hf_discussions_list ★ | no legacy path | `rules_v2.py:177-183` allows bounded lists when `len(cited_prs) >= 8`, but `cited_prs` ONLY matches `#(\d+)` or `/discussions/(\d+)`. A clean markdown table `\
|
| 92 | active · tabular CSV FLAKY_OR_UNFAIR v2:hand-org-followers | people count | Who are the 20 most recent followers of the huggingface organization? | hf_follow_graph ★ | no legacy path | `oracle_part3.py:102,218-219` snapshots the 20 most recent followers of `huggingface` (the most-followed org on HF) and requires >=16/20 matches with zero trace augmentation. Just 5 new followers between snapshot and run cause a false negative on a 100% accurate live answer.
|
| 93 | quarantined FLAKY_OR_UNFAIR v2:ch-mishig-activity | people single | Show recent activity for user "mishig" (15 events) and include event type + repoId when present. | hf_activity ★ | no legacy path | Single-line coupling + uninflected event-type regex `strict.py:437-444` requires exact `<event_type>` (e.g. `update`, `upvote`) AND `repo` on the **same line** for 15/15 occurrences. Multi-line JSON/bullets fail, and natural English inflections (`updated`, `upvoted`) fail `update`. Also uses `calls(e)` instead of `_turn_pairs(e, scanned)`.
|
| 94 | quarantined FLAKY_OR_UNFAIR v2:ch-mishig-spaces | people single | What spaces has mishig published? Return up to 20 with repo_id and likes. | hf_spaces_list | hub_repo_search hf_fs | Single-line coupling + "up to 20" enforced as exact 20 Prompt says *"Return up to 20 with repo_id and likes."* `strict.py:157-166` requires `repo_id` and `likes` on the **same line**, enforces `min(20, len(refs)) <= len(good) <= 20` (rejecting e.g. 15 when >=20 exist despite "up to 20"), and `good == cited` fails if any extra `mishig/...` repo is mentioned in prose.
|
| 95 | quarantined FLAKY_OR_UNFAIR v2:ch-my-pro-followers | people chain authenticated token | What have my pro followers liked recently? Return a compact mapping from follower username to recent liked repos with repo_id, repo_type, liked_at, and repo_url. | hf_whoami → hf_follow_graph ★ → hf_user_likes ★ | hf_whoami | Unrequested empty JSON `{}` requirement Prompt says *"Return a compact mapping..."* without requiring JSON. For the empty test account, `rules_v2.py:90-91` requires `extract_json_block(a) == {}` — a clear prose answer (*"You have 0 PRO followers"*) or `{"pro_followers": {}}` **fails**.
|
| 96 | quarantined FLAKY_OR_UNFAIR v2:ch-qwen-collections | collections chain | Find up to 3 collections owned by Qwen, then for each collection return up to 5 model repos with repo_id, repo_type, and repo_url. Use exact top-level keys results and coverage. | hf_collections_search → hf_collection_get | hf_fs | Underspecified schema + brittle `strict.py` assumptions Prompt asks for *"up to 3 collections owned by Qwen, then for each collection return up to 5 model repos with repo_id, repo_type, and repo_url. Use exact top-level keys results and coverage."* `strict.py:459-466` requires: (1) `results` is a `list` (rejects a dict keyed by collection); (2) each element contains the full `qwen/<slug>-<24hex>` string in `json.dumps(r)` even though the prompt never asked for collection slugs; (3) `next(x for x in r.values() if isinstance(x, list))` breaks if any other list key precedes `models`; (4) `bool(mods)` rejects a valid collection with 0 models.
|
| 97 | quarantined FLAKY_OR_UNFAIR v2:ch-qwen-discussions | people single | List up to 10 discussions for model Qwen/Qwen3.5-35B-A3B with num, title, author, status. | hf_discussions_list ★ | no legacy path | Single-line coupling + live Hub drift on active model `rules_v2.py:198-215` requires `num`, first 8 title words, `author`, and `status` all on the **same line** (rejects multi-line JSON/bullets). Worse, `ref` is snapshot-only (`oracle_overrides.json` / `capture_v2`), so ANY new discussion opened on `Qwen/Qwen3.5-35B-A3B` after snapshot breaks `cited <= matches` -> false negative. Also `1 <= len(matches) <= 10` is weak (1 discussion passes).
|
| 98 | quarantined FLAKY_OR_UNFAIR v2:ch-qwen-latest-comment | people chain | For model Qwen/Qwen3.5-35B-A3B, get the most recent discussion and return a compact JSON object with num, title, author, status, and latest_comment_text when available. Omit latest_comment_text if none is available. | hf_discussions_list ★ → hf_discussion_get ★ | no legacy path | Exact dict equality + live drift + sort ambiguity oracle_part1.py:419 checks parsed == target (exact dict equality), breaking on any new discussion/comment or key formatting difference.
|
| 99 | quarantined WEAK_GROUNDING v2:ch-trending-authors-follow-me | people chain authenticated token | Do any authors of the top 10 trending spaces follow me? Return exact top-level keys results and coverage, where results is a list of usernames only. | hf_whoami → hf_trending → hf_follow_graph ★ | hf_whoami hf_fs hub_repo_search | Unverified empty intersection + live drift `oracle_part1.py:421-425`: when the test account has 0 followers (`results == []`), returning `{"results": [], "coverage": "complete"}` passes with **zero** check that trending spaces or followers were queried. For non-empty accounts, top-10 trending spaces drift hourly against snapshot.
|
| 100 | quarantined FLAKY_OR_UNFAIR v2:cq-1213 | repo compare | Find models: Qwen/Qwen2.5-1.5B-Instruct and Qwen/Qwen2.5-3B-Instruct. Check their sizes and if they support Russian language. | hf_repo_info → hf_repo_read_text | hub_repo_details hf_fs | `strict.py:493-496` Brittle numeric formatting (FN)
|
| 101 | quarantined WEAK_GROUNDING v2:cq-2220 | search count | Find all FLUX.2 Klein models (4B and 9B variants) from black-forest-labs. List their parameter counts, download counts, number of LoRA adapters available, and any quantized versions. Also check if there are GGUF quantizations available for Klein models. | hf_models_search → hf_repo_info | hub_repo_search hf_fs | No numeric or oracle verification (`rules_v2.py:243-244`, `oracle_part2.py:263-278`) Prompt asks for all FLUX.2 Klein 4B & 9B models with parameter counts, download counts, LoRA adapter counts, and GGUF quantizations. Scorer only checks 1 repo ID + regexes for `black-forest-labs/*klein*{4b,9b}` + keywords `download`, `param
|
| 102 | quarantined FLAKY_OR_UNFAIR v2:cq-3831 | search count | Search Hugging Face model repositories for Mixtral-8x22B GPTQ quantized variants. Return matching repo ids with downloads, likes, and tags. Include repos whose names contain Mixtral-8x22B and GPTQ or whose tags indicate GPTQ. Be reasonably comprehensive. | hf_models_search | hub_repo_search hf_fs | Single-line formatting trap (`strict.py:467-479`) Prompt asks for Mixtral-8x22B GPTQ repo IDs with downloads, likes, and tags, without specifying a tabular/single-line format. `strict.py:476-478` requires `exact(x, l)`, exact integer `downloads`, exact integer `likes`, and `"gptq"` all on the **same line**, rejecting standard multi-line bullet blocks per model or abbreviated numbers (`1.2k`).
|
| 103 | quarantined WEAK_GROUNDING v2:cq-3885 | dataset compare | Search for these datasets and return details: 1) google/jigsaw_toxicity_pred, 2) CohereForAI/aya_dataset, 3) wikimedia/wikipedia, 4) amazon_reviews_multi, 5) SHP (Stanford Human Preferences), 6) Anthropic/hh-rlhf, 7) tatsu-lab/alpaca, 8) stingning/ultrachat. For each, give me the field/column names if available, file format, size, and languages. | hf_dataset_structure → hf_repo_info | hub_repo_details hf_fs | `strict.py:505-508` Unverified against oracle or trace (FP)
|
| 104 | quarantined WEAK_GROUNDING v2:cq-3912 | search compare | Find quantized variants of Mistral 8x7B (MoE) on Hugging Face Hub. Group by quantization type: GGUF, AWQ, GPTQ, EXL2, BitsAndBytes. Identify the most popular models by downloads and likes for each type. | hf_models_search | hub_repo_search hf_fs hub_repo_details | Fallback verifier ignores 4/5 categories & metrics (`oracle_part2.py:263-278`) Prompt asks to group Mistral/Mixtral-8x7B quantizations by GGUF, AWQ, GPTQ, EXL2, BitsAndBytes and identify the most popular by downloads/likes for each. Scorer only checks **1 single matching repo ID total** across all 5 categories plus the 5 literal words `gguf`, `awq`, `gptq`, `exl2`, `bitsandbytes`—never checking per-category repos, downloads, or likes.
|
| 105 | quarantined WEAK_GROUNDING v2:cq-4180 | spaces single | Find all public Spaces with the tag "vscode" or that have "code-server" in the name, sorted by most likes, show their status | hf_spaces_list | hub_repo_search hf_fs | Checks only 1 Space ID + literal word `"status"` (`oracle_part2.py:263-278`) Prompt asks for all public Spaces tagged `vscode` or named `code-server`, sorted by likes, with status. Scorer only checks **1** matching Space ID and literal words `vscode` and `status`—ignoring sorting, likes, actual runtime stages (`RUNNING`/`SLEEPING`), and dual-clause coverage. Also brittle if the agent writes column header `"Stage"`/`"Runtime"` instead of `"status"`.
|
| 106 | quarantined WEAK_GROUNDING v2:cq-5957 | dataset chain | Look up the dataset "nguha/legalbench" on Hugging Face. Get its exact ID, description, size, number of tasks, and what columns/fields it has. | hf_repo_info → hf_dataset_structure | hub_repo_details hf_fs | `oracle_part4.py:374-376` Ignores description, size, and columns (FP)
|
| 107 | quarantined WEAK_GROUNDING v2:cq-6526 | search chain | Find all Qwen3-Reranker and Qwen3-VL-Reranker models up to 4B parameters, list their sizes and GGUF quantizations if available | hf_models_search → hf_repo_info | hub_repo_search hf_fs | Checks only 1 repo ID + 2 keywords (`oracle_part2.py:263-278`) Prompt asks for all `Qwen3-Reranker` and `Qwen3-VL-Reranker` models up to 4B, with sizes and GGUF quantizations. Scorer checks only **1** matching repo ID and the words `reranker` and `gguf`—never verifying both families, the `<=4B` filter (0.6B/4B), sizes, or GGUF repos.
|
| 108 | quarantined FLAKY_OR_UNFAIR v2:cq-6900 | collections chain | List all models in the LiquidAI LFM2.5 collection at https://huggingface.co/collections/LiquidAI/lfm25. Show model names, sizes, and what they're for. | hf_collection_get → hf_repo_info | hf_fs | Live Hub oracle 403 (collection now private/unavailable) Live Hub snapshot capture returns HTTP 403 (collection status 403), causing 0/3 oracle-unavailable failures.
|
| 109 | quarantined WEAK_GROUNDING v2:cq-7205 | repo compare | Find Qwen2-VL-2B and Qwen2.5-VL-3B models from Qwen organization, show downloads and num_params. Also find InternVL2-2B or similar compact VLM models under 4B parameters. | hf_repo_info → hf_models_search | hub_repo_details hf_fs hub_repo_search | `oracle_part4.py:413-416` Captured oracle facts never checked (FP)
|
| 110 | quarantined WEAK_GROUNDING v2:cq-7512 | search chain | What inference providers and endpoints are available for text generation models like Qwen and Llama for API calls? | hf_models_search → hf_repo_info | hub_repo_search hf_fs | Broken oracle parsing; checks only 3 words (`oracle_part2.py:66-68,263-278`) Prompt asks generally what inference providers/endpoints are available for models like Qwen and Llama. `capture_oracle` fetches single model dicts (not lists) for 2 hardcoded repos, so `ids(value)` returns `[]` (`objs()` expects `list`) and `score_answer` falls back to `len(answer) >= 30` plus the 3 words `qwen`, `llama`, `provider`. Oracle's `inferenceProviderMapping` is completely unused.
|
| 111 | quarantined FLAKY_OR_UNFAIR v2:cq-7552 | papers single | Find the paper with arxiv ID 2603.04676 - search for it on the hub | hf_paper_get | hf_fs | Prompt/verifier mismatch (false negative) Prompt only asks: *"Find the paper with arxiv ID 2603.04676 - search for it on the hub"*. While 404 is handled cleanly by `rules_v2.py:164-165`, if the paper exists on the Hub (`oracle_part3.py:142`) it requires `>=50%` of all authors verbatim (`items(..., .5)`) and `len(final_answer) > 100` for "abstract" — neither of which was requested.
|
| 112 | quarantined FLAKY_OR_UNFAIR v2:cq-758 | search count | Which organizations have the most trending models right now? Show me the top organizations by count of trending models in the top 50. | hf_models_search → hf_trending | hub_repo_search hf_fs | Live Hub drift + arbitrary tie-breaking (`oracle_part2.py:198-202`) Prompt asks for top orgs by count in the live top-50 trending models. Scorer compares against a static snapshot's `counts.most_common(5)` with 80% overlap. Live trending rotates continuously, and orgs ranked 4–8 frequently tie at count 2–3, making `most_common(5)` tie-breaking arbitrary. Meanwhile `has_number_near(answer, n, 0, 0)` trivially matches list numbers (`1.`, `2.`, `3.`).
|
| 113 | quarantined WEAK_GROUNDING v2:cq-7890 | search chain | Find GGUF quantized versions of these coding models that are between 8GB and 14GB file size (Q4_K_M or Q5_K_M or QAT 4-bit): 1) Devstral Small 24B (by Mistral AI) 2) IBM Granite 20B Code Instruct 3) IBM Granite 4.0 H-Small. I need versions that fit in 32GB RAM with ~15GB headroom for OS+apps, so max ~16GB model file. Show file sizes and quantization levels. Exclude any Chinese-origin models. | hf_models_search → hf_repo_list_files → hf_repo_paths_info | hub_repo_search hf_fs | Captured file trees completely unused (`oracle_part2.py:98-104,263-278`) Prompt asks for 8–14GB (max ~16GB) GGUF quantizations (Q4_K_M/Q5_K_M/QAT 4-bit) for 3 specific coding models with file sizes and quant levels, excluding Chinese-origin models. `capture_oracle` fetches file trees for all 3, but `score_answer` ignores them and checks only **1** repo ID total + keywords `devstral`, `granite`, `gguf`.
|
| 114 | quarantined WEAK_GROUNDING v2:cq-7971 | dataset single | Get details about the dataset "pangram/editlens_iclr" - what are its columns, splits, size, and any other metadata? Also check if it's a gated dataset. | hf_dataset_structure → hf_repo_info | hub_repo_details hf_fs | Logic bug + missing check `oracle_part1.py:397-398`: `if gated else True` means when `gated` is `False`, asserting `"It is a gated dataset"` **passes**. Also `oracle["size"]` is captured (line 95) but never checked, split counts aren't bound to split names, and `evidence_text` isn't checked.
|
| 115 | quarantined WEAK_GROUNDING v2:csv-15440 | spaces single | What is the status of the Space black-forest-labs/FLUX.1-Krea-dev? Is it running or paused? | hf_repo_info | hub_repo_details hf_fs | Trivial false positive + underscore FN + 404 bug Prompt: *"What is the status of the Space black-forest-labs/FLUX.1-Krea-dev? Is it running or paused?"* `oracle_part3.py:175-176` only checks `contains_ci(ans, stage)`. Answering *"It is not running, it is paused"* contains BOTH `running` and `paused` and passes even if backwards! Also fails on `RUNTIME_ERROR`/`RUNNING_BUILDING` if written with spaces (`runtime error`), and `capture_oracle` puts 404 in `runtime._status` without setting `not_found=True`.
|
| 116 | quarantined FLAKY_OR_UNFAIR v2:csv-15517 | repo single | Get the chat_template field from the tokenizer_config.json of the model google/gemma-4-27b-it. I need the full raw Jinja2 template text. | hf_repo_info → hf_repo_read_text | hub_repo_details hf_fs | Critical 401 capture/scorer mismatch + verbatim multi-KB fragility `oracle_overrides.json` has `{"repo": "google/gemma-4-27b-it", "target_status": 401}` (no `template`/`templates`), and `oracle_part1.py:344` raises `OracleError` on 401 while `capture_v2.py:45-46` captures no sibling templates. `strict.py:91-107` runs **before** `rules_v2.py:101` and requires `matched_tmpl` from empty `tmpls` → **guaranteed fail**. Even on 404, verbatim multi-KB Jinja template matching is brittle to minor escaping/truncation.
|
| 117 | quarantined FLAKY_OR_UNFAIR v2:csv-16747 | spaces single | Find spaces with hardware "a10g-small" OR "a10g-large" OR "t4-medium" OR "a100-large" that are RUNNING (stage=RUNNING), sdk=gradio, sort by likes, limit 15, return space_id hardware likes | hf_spaces_list | hub_repo_search hf_fs | Extreme live-drift + MCP-only trace sniffing + strict `ids == set` (`strict.py:108-127`) Prompt asks for up to 15 `RUNNING` Gradio Spaces on 4 GPU tiers sorted by likes. Only ~7 such Spaces are `RUNNING` at a time and GPU Spaces constantly sleep/wake. `strict.py:115` only trusts a live trace query if the call literally contains `"hardwarecurrentany"` and `"hasmore": false` (MCP-specific; fails for CLI/Python/REST), and `len(live) >= 15` never triggers when `<15` exist. Worse, `ids == {z[0] for z in ref}` fails if the answer mentions *any* other `a/b` token (e.g., an excluded Space or `gradio/RUNNING`).
|
| 118 | quarantined FLAKY_OR_UNFAIR v2:csv-19370 | repo count | For the model repo "unsloth/Qwen3.5-27B-GGUF", list all files with their sizes (siblings field). | hf_repo_list_files | hf_fs hub_repo_details | Byte-size unit trap + `RESPONSE_GUIDELINES` truncation conflict (`oracle_part2.py:185-194`, `oracle_utils.py:133-156`) Prompt asks to list all files with their sizes for `unsloth/Qwen3.5-27B-GGUF` (does not ask for bytes). `has_number_near` compares against raw byte integers (`x['size']`), and `extract_numbers()` ignores `KB/MB/GB/GiB` units—so standard `16.74 GB` / `15.59 GiB` sizes fail 100% of the time. Also, if the repo has >25 GGUF files, `RESPONSE_GUIDELINES` encourages truncating to 10–20 items, failing 80% overlap.
|
| 119 | quarantined WEAK_GROUNDING v2:csv-20423 | collections single | Find collections and repositories related to "gemmaverse" | hf_collections_search → hf_models_search | hf_fs hub_repo_search hub_repo_details | `oracle_part4.py:367-373` Single-item pass (FP)
|
| 120 | quarantined FLAKY_OR_UNFAIR v2:csv-24188 | docs chain | Search for references to 'cpu-basic' and 'cpu-upgrade' in Hugging Face Jobs documentation or examples and return the exact strings if present. | hf_docs_search → hf_docs_read | hf_fs hf_jobs | Unrequested URL + false positive on negation `oracle_part1.py:399-402` fails unless literal `"huggingface.co"` appears in the answer (prompt never asks for a URL). Simultaneously, `"I could not find 'cpu-basic' or 'cpu-upgrade' on huggingface.co"` **passes** all 3 checks without checking `evidence_text`.
|
| 121 | quarantined WEAK_GROUNDING v2:csv-2599 | people single | Get the full details and comments of discussion #26 titled "MAC Support ?" on the tencent/Hunyuan3D-2 model repository. Show all comments and responses. | hf_discussion_get ★ | no legacy path | Comment content never verified Prompt asks for *"full details and comments of discussion #26 titled 'MAC Support ?' ... Show all comments and responses."* `oracle_part3.py:205-206` only checks the title (already given in the prompt!) and 80% of comment author handles — zero verification of comment text, timestamps, or discussion status.
|
| 122 | quarantined FLAKY_OR_UNFAIR v2:csv-2684 | repo count | List all files in the repo unsloth/GLM-4.7-GGUF that contain "Q4_K_M" in the filename. I need the exact filenames and file sizes for every Q4_K_M shard. Also tell me the total number of Q4_K_M files and the total combined size. | hf_repo_list_files | hf_fs hub_repo_details | Exact byte-integer requirement for GB-scale shards (`rules_v2.py:166-169`) Prompt asks for "exact filenames and file sizes" and "total combined size" of `Q4_K_M` shards in `unsloth/GLM-4.7-GGUF`—never specifying bytes. `rules_v2.py:169` requires exact integer byte counts (`num(x["size"])` and `num(sum(...))`) with zero tolerance, rejecting standard `GB`/`GiB` reporting.
|
| 123 | quarantined WEAK_GROUNDING v2:csv-28382 | papers chain | For arXiv paper 2602.01198, return any available Hugging Face paper metadata and linked resources in a compact JSON-like form, including title, authors, summary, githubRepo, projectPage, linked models, linked datasets, linked spaces, and any extra notes. | hf_paper_get → hf_models_search → hf_datasets_search → hf_spaces_search | hf_fs | `oracle_part4.py:433-436` Ignores almost all requested metadata (FP)
|
| 124 | quarantined WEAK_GROUNDING v2:csv-29992 | collections chain | List all models in the Qwen collection at https://huggingface.co/collections/Qwen/qwen36 — return the model IDs and sizes. | hf_collection_get → hf_repo_info | hf_fs | False positive on requested sizes Prompt asks for *"model IDs and sizes"* in `Qwen/qwen36`. `oracle_part3.py:173-174` gates sizes with `any(contains_ci(ans, x) for x in ('parameter','size','billion',' b','b-'))`. A model ID like `Qwen/Qwen3.6-35B-A3B` itself contains `'b-'`, and any prose word starting with `b` contains `' b'`, so omitting sizes entirely still passes. Also "sizes" is ambiguous (parameter count vs. GB).
|
| 125 | quarantined FLAKY_OR_UNFAIR v2:csv-31234 | search chain | Find models containing file t5xxl_fp8_e4m3fn.safetensors from well-known authors like Lightricks, city96, or mcmonkey4eva | hf_models_search → hf_repo_fulltext_search ★ → hf_repo_paths_info → hf_repo_list_files | hub_repo_search hf_fs | Prompt username typo + "like" phrasing vs. strict single-repo gate (`strict.py:137-141`, `capture_v2.py:55-60`) Prompt says "from well-known authors **like** Lightricks, city96, or **mcmonkey4eva**". On HF Hub the author is `mcmonkey` (not `mcmonkey4eva`), and `capture_v2` only finds 1 repo: `mcmonkey/google_t5-v1_1-xxl_encoderonly`. `strict.py` strictly requires `exact("mcmonkey/google_t5-v1_1-xxl_encoderonly", a)`, failing competent agents who either search the literal 3 usernames or return other real hosts like `comfyanonymous/flux_text_encoders`.
|
| 126 | quarantined FLAKY_OR_UNFAIR v2:csv-34040 | repo single | Get the tokenizer_config.json and special_tokens_map.json contents for google/gemma-4-E4B-it. I need the token IDs for beginning-of-audio (boa), end-of-audio (eoa), beginning-of-image (boi), end-of-image (eoi) tokens, plus the pad_token_id and bos/eos token IDs. | hf_repo_read_text | hf_fs hub_repo_details | Broken `tok_Surface` key mismatch in regex (`rules_v2.py:135-141`, `capture_v2.py:64`) Prompt asks for token IDs for `boa`, `eoa`, `boi`, `eoi`, `pad_token_id`, `bos`, `eos` in `google/gemma-4-E4B-it`. `capture_v2` stores keys `boa`, `eoa`, `boi`, `eoi`, `bos`, `eos`, `pad`, while `rules_v2`'s `tok_Surface` dict uses keys `bos_token`, `eos_token`, `pad_token`—so `tok_Surface.get(k)` **always misses** and falls back to `<k>`. Because `_` is a word char, lines like `pad_token_id: 0`, `boa_token: 256000`, or `bos_token_id: 2` (using the prompt's own `pad_token_id` spelling!) fail `pad`/`boa`/`bos`.
|
| 127 | quarantined FLAKY_OR_UNFAIR v2:csv-37988 | dataset chain | Find English text datasets on HuggingFace suitable for NLP/data science tasks. I need datasets with between 10,000 and 50,000 rows. Look for datasets tagged with text, nlp, or classification. List 15 results with dataset names and row counts. | hf_datasets_search → hf_dataset_structure | hub_repo_search hf_fs | Incomplete snapshot (6/15) + brittle ATIF parsing + single-line exact int (`strict.py:328-371`) Prompt asks for 15 English text datasets with 10,000–50,000 rows. `capture_v2` only captures **6** qualifying datasets (`oracle_overrides.json`), so the verifier relies on parsing raw JSON fields (`tags`, `numRows`, `datasets_search` query regex) from the ATIF trace to reach 15—failing clean CLI/script summaries—and requires each dataset ID and exact integer row count (no `25k`) on the **same line**.
|
| 128 | quarantined WEAK_GROUNDING v2:csv-4054 | repo single | Look at the README/model card for Qwen/Qwen3.5-27B. How do you disable thinking mode? What is the exact syntax for no_think or enable_thinking=false? Check for chat template details. | hf_repo_read_text → hf_repo_info | hf_fs hub_repo_details | `strict.py:481-482` Prompt-echo pass (FP)
|
| 129 | quarantined FLAKY_OR_UNFAIR v2:csv-8899 | dataset single | Get me 2 sample rows from the dataset "Locutusque/Cybersecurity-ShareGPT". I need the full conversations field content for each row - each message's 'from' and 'value'. | hf_dataset_rows | hub_repo_details | "2 sample rows" vs. 100% verbatim match on rows 0-1 Prompt asks for "2 sample rows" from Locutusque/Cybersecurity-ShareGPT, but oracle_part2.py:251-257 requires 100% verbatim match on rows 0-1.
|
| 130 | quarantined FLAKY_OR_UNFAIR v2:csv-9233 | docs chain | what happens when a space is paused and how to restart it, check if there are any issues with paused spaces not restarting | hf_docs_search → hf_docs_read | hf_fs | `strict.py:274-278` Unasked-for requirement + impossible external tool check (FN)
|
| 131 | quarantined FLAKY_OR_UNFAIR v2:csv-9892 | dataset single | What are the configs/subsets available in the intronhealth/afrispeech-200 dataset? Does it have language-specific subsets? I need to find if there's a Zulu or isiZulu subset. Also check what columns/features are available. | hf_dataset_structure | hub_repo_details | 80% of ~120+ configs contradicts `RESPONSE_GUIDELINES` + gating asymmetry (`oracle_part2.py:240-247`, `rules_v2.py:188-189`) When `intronhealth/afrispeech-200` is gated/unavailable, `rules_v2.py:189` handles it cleanly. However, when accessible, `oracle_part2.py:243` requires 80% overlap across all ~120+ configs (~96+ configs), directly contradicting `RESPONSE_GUIDELINES` ("state the total count found and include at least 10–20 representative items inline"). Also, token-access mismatch between snapshot and agent causes false negatives.
|
| 132 | quarantined FLAKY_OR_UNFAIR v2:hand-dataset-likers | people single | Who were the 10 most recent people to like the HuggingFaceFW/fineweb-edu dataset? | hf_repo_likers ★ | no legacy path | Severe live Hub drift (static 10-item oracle) `oracle_part3.py:97,218-219` snapshots the 10 most recent likers of `HuggingFaceFW/fineweb-edu` (a very high-traffic dataset) and requires >=8/10 exact username matches with zero trace augmentation. Just 3 new likes between capture and evaluation cause a false negative.
|
| 133 | quarantined FLAKY_OR_UNFAIR v2:hand-filter-values | search chain | Which exact language and license filter values should I use to find Brazilian Portuguese models under Apache 2.0, and what are the top results? | hf_filter_values ★ → hf_models_search | hf_fs partial | Ambiguous Hub tag vs. strict filter mismatch (`strict.py:197-206`, `capture_v2.py:65-66`) Prompt asks for the "exact language and license filter values" for Brazilian Portuguese + Apache 2.0. HF's official ISO language filter is `pt` (`pt-br` is an ad-hoc user tag, not in `/api/models-tags-by-type`). `strict.py` requires bare `exact("pt", a)` (rejecting `pt-br`-only answers) **yet** rejects models from a plain `filter=pt,apache-2.0` query unless they also carry `pt-br`/`brazil` tags or query terms.
|
| 134 | quarantined WEAK_GROUNDING v2:hand-last-scheduled-output | jobs chain authenticated token | What did the last run of my weekly eval schedule print? | hf_jobs_list → hf_job_get → hf_job_logs | hf_jobs | Passes on ungrounded refusals + unimplemented capture `oracle_part1.py:406-408` passes any answer containing `(no\
|
| 135 | quarantined FLAKY_OR_UNFAIR v2:hand-license-commit | repo chain | Has the license text of meta-llama/Llama-3.2-1B changed since release? Check the commit history. | hf_repo_history ★ → hf_repo_read_text | hf_fs hub_repo_details partial | Brittle SHA/trace linking (`strict.py:279-299`) Prompt asks if `meta-llama/Llama-3.2-1B` license text changed since release. `strict.py` requires either a literal `meta-llama/llama-3.2-1b/commit/<sha>` URL or a hex SHA matching `license_shas`, which only scans tool lines `<=1200` chars containing `"license"` or records with `path`/`rfilename` containing `"license"`. `/api/models/.../commits/main?path=LICENSE` returns compact JSON (`>1200` chars) whose commit objects lack a `path` field and whose title (`"Initial commit"`) lacks `"license"`, causing valid SHA citations to fail. Also `gated_ok` fails if `cited` is non-empty (e.g., citing a public commit SHA while noting `LICENSE` content is gated).
|
| 136 | quarantined WEAK_GROUNDING v2:hand-org-admins | people single | Who are the admins of the huggingface organization on the Hub? | hf_org_members ★ | no legacy path | Passes ungrounded refusals + `wrong_platform` trap `rules_v2.py:190-191` (`test("admin") and test(DEN) and not has("github")`) never checks `evidence_text` — refusing from memory passes. Conversely, quoting a 401 `"not authenticated"` error triggers `strict.py:wrong_platform()` and fails.
|
| 137 | quarantined FLAKY_OR_UNFAIR v2:hand-paper-upvotes | people single | Which papers has akhaliq upvoted or submitted recently? | hf_activity ★ | no legacy path | Severe live drift + unspecified window Prompt asks *"recently"* (unspecified count) for `akhaliq` (dozens of papers/day). `oracle_part1.py:299-316,474` snapshots `limit=100` and demands 80–100% overlap with those exact arXiv IDs — guaranteed false negative under live drift OR when an agent returns 10–20 recent papers.
|
| 138 | quarantined WEAK_GROUNDING v2:hand-rows-sql | dataset count | In HuggingFaceH4/ultrachat_200k, roughly how many train_sft conversations have more than 4 messages? | hf_dataset_structure → hf_dataset_rows | hub_repo_details partial | `strict.py:485-489` Shared-number bypass (FP) + `140k` parse gap (FN)
|
| 139 | quarantined FLAKY_OR_UNFAIR v2:hand-token-scope | account single authenticated token | Is the token you are using read-only, or can it write to my repos? | hf_whoami | hf_whoami | Brittle regex + weak grounding `strict.py:256-264` uses a narrow word-order regex for `write` (`"has full write access"` fails due to `"full"`; `"this token is not read-only; write access is enabled"` fails; `"no write access to orgs"` triggers negative lookahead). For `fineGrained` tokens, `re.escape("finegrained")` rejects hyphenated `"fine-grained"`. Also never checks `whoami` in `evidence_text`.
|
| 140 | quarantined WEAK_GROUNDING v2:syn-join-paper-models-params | papers chain | Look up the DeepSeek-R1 paper (arXiv 2501.12948) on Hugging Face, find the official deepseek-ai model repositories linked to that paper, and report their model IDs and parameter counts. | hf_paper_get → hf_models_search → hf_repo_info | hf_fs hub_repo_search | `oracle_part4.py:520-522` Parameter counts never checked (FP)
|
| 141 | quarantined WEAK_GROUNDING v2:syn-openenv-coding-space | spaces single | Inspect the Hugging Face Space openenv/coding_env. What SDK does it run on, what hardware flavor is it currently using, and what tags does it have? | hf_repo_info → hf_spaces_list | hub_repo_details hf_fs hub_repo_search dynamic_space | `oracle_part4.py:468-472` Logic bug skips hardware check (FP)
|
Results
Evaluation results will be added here.