> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hugging Face

> A machine learning platform for working with models, datasets, Spaces, and discussions via your connected account.

Use this app when you need to inspect or change Hugging Face repositories from a workflow. You can look up models, datasets, and Spaces, then create commits or manage discussions.

## Configuration

| Option | Required | Description |
| - | - | - |
| Name | No | Label for the step in the workflow canvas. |
| Authentication | Yes | The connected Hugging Face account to use for this step. |
| Action | Yes | The Hugging Face action to perform (for example Get model info, Get dataset info, Get space info, List repository files). |
| Arguments | Yes | Per-action form fields generated from the action's schema. Each text field has an **Insert Variable** button for injecting `{{placeholder}}` values. A **Raw JSON** tab is available for advanced usage. |
| When the step fails | No | Controls whether the workflow should **Terminate Workflow** or **Continue** if this step fails. |

Before you configure this step, connect Hugging Face in **Integrations** for your workspace using the sign-in flow. If no active connection is available, the step shows a warning with a link to **Integrations** instead of the account selector.

## Arguments form

When you select an action, the **Arguments** section renders a form driven by the action's input schema.

Switch to the **Raw JSON** tab when you prefer to write the full arguments object by hand. Changes in either tab stay in sync.

## Common actions

| Action | Description |
| - | - |
| **Get model info** | Retrieve details for a model repository. |
| **Get dataset info** | Retrieve details for a dataset. |
| **Get space info** | Retrieve details for a Space repository. |
| **List repository files** | List the files in a repository. |
| **List model commits** | List commits from a model repository. |
| **Create model commit** | Create a commit in a model repository. |
| **List dataset commits** | List commits from a dataset repository. |
| **Create dataset commit** | Create a commit in a dataset repository. |
| **List space commits** | List commits from a Space repository. |
| **Create space commit** | Create a commit in a Space repository. |
| **List discussions** | List discussions for a repository. |
| **Get discussion details** | Retrieve details for a repository discussion. |
| **Create discussion** | Create a new discussion on a repository. |
| **Create discussion comment** | Add a comment to a repository discussion. |
| **Update discussion title** | Change the title of a repository discussion. |

Destructive actions, such as deleting records, are not available in the workflow action picker.

## Output

This step stores the Hugging Face response as the step output. The shape of the response depends on the action.

Use the full output reference in later steps:

```text theme={null}
{{STEP_IDENTIFIER.output}}
```

## Example

1. Open **Integrations** and connect Hugging Face if you have not already done that.
2. Add a **Hugging Face** step to your workflow.
3. Select a connected account in **Authentication**.
4. Choose **Get model info** in **Action**.
5. Fill in the required fields. Use **Insert Variable** to reference an earlier step's output for any field value.
6. Click **Run** in the step header to test the action, then review the returned payload in **Output**.

## Use cases

### Review a model repo

1. Get model info
2. List repository files
3. List model commits

### Publish a dataset update

1. Get dataset info
2. List dataset commits
3. Create dataset commit

### Manage discussion feedback

1. List discussions
2. Get discussion details
3. Create discussion comment

## Notes

* This step depends on a connected Hugging Face integration in your workspace.
* The workflow action picker shows a curated set of actions. Agents with the Hugging Face tool can use more of them.
* The sign-in screen may show third-party authorization branding.

## Using Hugging Face as an Agent Tool

You can also add Hugging Face as a tool in the **Agent Editor**. Open the agent, click **Add tool**, and select **Hugging Face**. In the tool settings panel, choose the connected account the agent should use. The agent calls Hugging Face actions when they are relevant to the conversation.

See also: [Integrations](https://docs.fetchhive.com/workspace/integrations.md), [Creating and Editing](https://docs.fetchhive.com/workflows/creating-and-editing.md), and [Testing and Iteration](https://docs.fetchhive.com/workflows/testing-and-iteration.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.