# Hugging face model repository files

Files of a Hugging Face model repository with their exact sizes in bytes: weights, GGUF quantizations, configs. Needs owner and name.

Files of a Hugging Face model repository with their exact sizes in bytes: weights, GGUF quantizations, configs. Use it to see how much disk or memory a model needs, or which quantized variants exist, before downloading. Lists up to 100 entries of the main branch, folders as entries unless recursive is true. Returns 401 or 404 for gated, private or missing repositories.

- Tool ID: `huggingface/model-files`
- Name in the catalog: Hugging Face model repository files
- Provider: [Hugging Face](/providers/huggingface.md)
- Capability: [GitHub, npm & PyPI](/tools/developer-data/code.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "owner": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$",
      "description": "Owner part of the model id, e.g. 'Qwen'"
    },
    "name": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$",
      "description": "Model name part of the id, e.g. 'Qwen2.5-7B-Instruct'"
    },
    "recursive": {
      "type": "boolean",
      "default": false,
      "description": "Also list files inside folders, e.g. true"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 50,
      "description": "Entries to return, e.g. 50"
    }
  },
  "required": [
    "owner",
    "name"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "huggingface/model-files",
  "input": {
    "owner": "Qwen",
    "name": "Qwen2.5-7B-Instruct",
    "limit": 20
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: Hugging Face Hub metadata; each repository carries its own licence.

[Provider documentation](https://huggingface.co/docs/hub/api)

[REST inspection](https://api.agentik.cc/v1/tools/huggingface/model-files) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/huggingface/model-files) · [Agent index](/llms.txt)
