# load_huggingface_tool

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/agent_toolkits/load_tools/load_huggingface_tool)

Loads a tool from the HuggingFace Hub.

## Signature

```python
load_huggingface_tool(
    task_or_repo_id: str,
    model_repo_id: Optional[str] = None,
    token: Optional[str] = None,
    remote: bool = False,
    **kwargs: Any = {},
) -> BaseTool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `task_or_repo_id` | `str` | Yes | Task or model repo id. |
| `model_repo_id` | `Optional[str]` | No | Optional model repo id. Defaults to None. (default: `None`) |
| `token` | `Optional[str]` | No | Optional token. Defaults to None. (default: `None`) |
| `remote` | `bool` | No | Optional remote. Defaults to False. (default: `False`) |
| `kwargs` | `Any` | No | Additional keyword arguments. (default: `{}`) |

## Returns

`BaseTool`

A tool.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/agent_toolkits/load_tools.py#L568)