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

# YouTube MCP Tools

> Model Context Protocol (MCP) tool reference for connected YouTube accounts.

The Posttu MCP server exposes **8 tools** for interacting directly with connected **YouTube** channels.

### Requirements & Scopes

* **Connected Channel**: The target YouTube account must be connected in your workspace. Pass the channel's identifier as the `channelId` parameter.
* **Scope Permissions**:
  * Reads require `youtube:read` (or `mcp:full`).
  * Mutations require `youtube:write` (or `mcp:full`).
* **Dual Execution**: Every tool maps 1:1 to Posttu's REST API.

***

## Available Tools (8)

## Account

### `youtube_account_me`

Get the authenticated YouTube channel profile. Returns the YouTube channel profile for the given connected channel.

* **Scope**: `youtube:read`
* **REST Route**: [`POST /api/v1/youtube/account/me`](https://docs.posttu.com/api-reference/youtube/account/account-me)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_account_me",
    "arguments": {
      "channelId": "chn_live_12345"
    }
  }
}
```

***

## Posts

### `youtube_posts_get`

Get a YouTube video. Retrieves a single YouTube video by ID.

* **Scope**: `youtube:read`
* **REST Route**: [`POST /api/v1/youtube/posts/get`](https://docs.posttu.com/api-reference/youtube/posts/posts-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `externalPostId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_posts_get",
    "arguments": {
      "channelId": "chn_live_12345",
      "externalPostId": "externalPostId_example"
    }
  }
}
```

***

### `youtube_posts_list`

List YouTube videos. Lists the channel's videos with normalized titles, thumbnails and URLs, paginated by cursor.

* **Scope**: `youtube:read`
* **REST Route**: [`POST /api/v1/youtube/posts/list`](https://docs.posttu.com/api-reference/youtube/posts/posts-list)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_posts_list",
    "arguments": {
      "channelId": "chn_live_12345",
      "limit": 10,
      "cursor": "example_value"
    }
  }
}
```

***

### `youtube_posts_delete`

Delete YouTube videos. Deletes one or more YouTube videos and marks them deleted in the workspace.

* **Scope**: `youtube:write`
* **REST Route**: [`POST /api/v1/youtube/posts/delete`](https://docs.posttu.com/api-reference/youtube/posts/posts-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `postIds` | `array` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_posts_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "postIds": [
        "item_1"
      ]
    }
  }
}
```

***

## Comments

### `youtube_posts_comments_create`

Create a YouTube comment. Creates a comment on a YouTube video, or a reply when `isReply` is true and `externalCommentId` is a comment ID.

* **Scope**: `youtube:write`
* **REST Route**: [`POST /api/v1/youtube/posts/comments/create`](https://docs.posttu.com/api-reference/youtube/comments/posts-comments-create)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `externalCommentId` | `string` | No | — |
| `externalPostId` | `string` | No | — |
| `messageData` | `object` | **Yes** | — |
| `messageData.media` | `array` | No | — |
| `messageData.message` | `string` | No | — |
| `messageData.fansly` | `object` | No | — |
| `messageData.fansly.lockedText` | `array` | No | — |
| `messageData.fansly.media` | `array` | No | — |
| `messageData.onlyfans` | `object` | No | — |
| `messageData.onlyfans.price` | `number` | No | — |
| `messageData.onlyfans.lockedText` | `boolean` | No | — |
| `messageData.mastodon` | `object` | No | — |
| `messageData.mastodon.sensitive` | `boolean` | No | — |
| `messageData.mastodon.spoiler_text` | `string` | No | — |
| `messageData.mastodon.visibility` | `string` | No | — |
| `isReply` | `boolean` | No | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_posts_comments_create",
    "arguments": {
      "channelId": "chn_live_12345",
      "externalCommentId": "externalCommentId_example",
      "externalPostId": "externalPostId_example",
      "messageData": {
        "media": [],
        "message": "example_value"
      },
      "isReply": false
    }
  }
}
```

***

### `youtube_posts_comments_delete`

Delete a YouTube comment. Deletes a comment thread by ID.

* **Scope**: `youtube:write`
* **REST Route**: [`POST /api/v1/youtube/posts/comments/delete`](https://docs.posttu.com/api-reference/youtube/comments/posts-comments-delete)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `externalCommentId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_posts_comments_delete",
    "arguments": {
      "channelId": "chn_live_12345",
      "externalCommentId": "externalCommentId_example"
    }
  }
}
```

***

### `youtube_posts_comments_get`

List YouTube video comments. Lists comments for a video; additional parameters are forwarded to the YouTube API.

* **Scope**: `youtube:read`
* **REST Route**: [`POST /api/v1/youtube/posts/comments/get`](https://docs.posttu.com/api-reference/youtube/comments/posts-comments-get)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_posts_comments_get",
    "arguments": {
      "channelId": "chn_live_12345"
    }
  }
}
```

***

## Media

### `youtube_media_upload`

Upload YouTube media. Uploads media (thumbnail or video file) from the media library to a YouTube video.

* **Scope**: `youtube:write`
* **REST Route**: [`POST /api/v1/youtube/media/upload`](https://docs.posttu.com/api-reference/youtube/media/media-upload)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `channelId` | `string` | **Yes** | — |
| `mediaId` | `string` | **Yes** | — |
| `videoId` | `string` | **Yes** | — |
| `mediaName` | `string` | No | — |
| `mediaType` | `string` | **Yes** | — |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "youtube_media_upload",
    "arguments": {
      "channelId": "chn_live_12345",
      "mediaId": "mediaId_example",
      "videoId": "videoId_example",
      "mediaName": "example_value",
      "mediaType": "example_value"
    }
  }
}
```

***


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