> ## 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.

# YouTube

> Manage YouTube content, playlists, and comments via your connected account.

Use YouTube when you need to publish content, organize playlists, or manage video comments. Add it as a step when your workflow has a video ID, playlist ID, comment ID, or text ready to use.

## Configuration

| Option | Required | Description |
| - | - | - |
| Name | No | Label for the step in the workflow canvas. |
| Authentication | Yes | The connected YouTube account to use for this step. |
| Action | Yes | The YouTube action to perform (for example Get video details, Search videos, Upload video, Update video). |
| 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 YouTube 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. Fields that refer to existing records include dropdown pickers.

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 video details** | Fetch detailed metadata for one or more videos by ID. |
| **Search videos** | Search for videos, channels, or playlists by query. |
| **Upload video** | Upload a video file to a channel with metadata and privacy settings. |
| **Update video** | Update metadata for an existing video. |
| **Update thumbnail** | Set a custom thumbnail for a video from an image URL. |
| **List playlist items** | List the videos in a playlist. |
| **Create playlist** | Create a new playlist on the connected channel. |
| **Update playlist** | Update a playlist's metadata and privacy settings. |
| **Add video to playlist** | Insert a video into a playlist. |
| **Update playlist item** | Change a playlist item's position or note. |
| **List comment threads** | List comment threads for a video or channel. |
| **Post comment** | Post a new top-level comment on a video. |
| **Insert comment reply** | Reply to an existing comment. |
| **Update comment** | Edit the text of an existing comment. |
| **Set moderation status** | Approve, reject, or mark comments as held for review. |

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

## Output

This step stores the YouTube 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 YouTube if you have not already done that.
2. Add a **YouTube** step to your workflow.
3. Select a connected account in **Authentication**.
4. Choose **Get video details** 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

### Publish a new video

1. Upload video
2. Update thumbnail
3. Update video

### Organize a playlist

1. Create playlist
2. Add video to playlist
3. Update playlist

### Moderate comments

1. List comment threads
2. Set moderation status
3. Insert comment reply

## Notes

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

## Using YouTube as an Agent Tool

You can also add YouTube as a tool in the **Agent Editor**. Open the agent, click **Add tool**, and select **YouTube**. In the tool settings panel, choose the connected account the agent should use. The agent calls YouTube 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.