Youtube automation

From Zidong-LLC/BIBLIOTECA · View interactive version

Youtube automation is an AI agent skill from the GitHub repository Zidong-LLC/BIBLIOTECA. Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

How to use this skill

Skill file

YouTube Automation via Rube MCP

Automate YouTube operations through Composio's YouTube toolkit via Rube MCP.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit youtube
  3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Upload and Manage Videos

When to use: User wants to upload a video or update video metadata

Tool sequence:

  1. YOUTUBE_UPLOAD_VIDEO - Upload a new video [Required]
  2. YOUTUBE_UPDATE_VIDEO - Update title, description, tags, privacy [Optional]
  3. YOUTUBE_UPDATE_THUMBNAIL - Set a custom thumbnail [Optional]

Key parameters:

Pitfalls:

2. Search YouTube Content

When to use: User wants to find videos, channels, or playlists

Tool sequence:

  1. YOUTUBE_SEARCH_YOU_TUBE - Search for content [Required]
  2. YOUTUBE_VIDEO_DETAILS - Get full details for a specific video [Optional]
  3. YOUTUBE_GET_VIDEO_DETAILS_BATCH - Get details for multiple videos [Optional]

Key parameters:

Pitfalls:

3. Manage Playlists

When to use: User wants to create playlists or manage playlist contents

Tool sequence:

  1. YOUTUBE_LIST_USER_PLAYLISTS - List user's existing playlists [Optional]
  2. YOUTUBE_CREATE_PLAYLIST - Create a new playlist [Optional]
  3. YOUTUBE_ADD_VIDEO_TO_PLAYLIST - Add a video to a playlist [Optional]
  4. YOUTUBE_LIST_PLAYLIST_ITEMS - List videos in a playlist [Optional]

Key parameters:

Pitfalls:

4. Get Channel and Video Analytics

When to use: User wants to analyze channel performance or video metrics

Tool sequence:

  1. YOUTUBE_GET_CHANNEL_ID_BY_HANDLE - Resolve a handle to channel ID [Prerequisite]
  2. YOUTUBE_GET_CHANNEL_STATISTICS - Get channel subscriber/view/video counts [Required]
  3. YOUTUBE_LIST_CHANNEL_VIDEOS - List all videos from a channel [Optional]
  4. YOUTUBE_GET_VIDEO_DETAILS_BATCH - Get per-video statistics [Optional]
  5. YOUTUBE_GET_CHANNEL_ACTIVITIES - Get recent channel activities [Optional]

Key parameters:

Pitfalls:

5. Manage Subscriptions and Comments

When to use: User wants to subscribe to channels or view video comments

Tool sequence:

  1. YOUTUBE_SUBSCRIBE_CHANNEL - Subscribe to a channel [Optional]
  2. YOUTUBE_UNSUBSCRIBE_CHANNEL - Unsubscribe from a channel [Optional]
  3. YOUTUBE_LIST_USER_SUBSCRIPTIONS - List subscriptions [Optional]
  4. YOUTUBE_LIST_COMMENT_THREADS - List comments on a video [Optional]

Key parameters:

Pitfalls:

Common Patterns

Channel ID Resolution

Handle to Channel ID:

1. Call YOUTUBE_GET_CHANNEL_ID_BY_HANDLE with '@handle'
2. Extract channelId from response
3. Use in subsequent channel operations

Uploads Playlist:

1. Get channel ID (starts with 'UC')
2. Replace 'UC' prefix with 'UU' to get uploads playlist ID
3. Use with LIST_PLAYLIST_ITEMS to enumerate all videos

Pagination

Batch Video Details

Known Pitfalls

Quota Management:

ID Formats:

Thumbnails:

Response Parsing:

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| Upload video | YOUTUBE_UPLOAD_VIDEO | title, description, tags, categoryId, privacyStatus, videoFilePath |

| Update video | YOUTUBE_UPDATE_VIDEO | video_id, title, description, tags |

| Set thumbnail | YOUTUBE_UPDATE_THUMBNAIL | videoId, thumbnailUrl |

| Search YouTube | YOUTUBE_SEARCH_YOU_TUBE | q, type, maxResults |

| Video details | YOUTUBE_VIDEO_DETAILS | id, part |

| Batch video details | YOUTUBE_GET_VIDEO_DETAILS_BATCH | id, parts |

| List playlists | YOUTUBE_LIST_USER_PLAYLISTS | maxResults, pageToken |

| Create playlist | YOUTUBE_CREATE_PLAYLIST | (check schema) |

| Add to playlist | YOUTUBE_ADD_VIDEO_TO_PLAYLIST | (check schema) |

| List playlist items | YOUTUBE_LIST_PLAYLIST_ITEMS | playlistId, maxResults |

| Channel statistics | YOUTUBE_GET_CHANNEL_STATISTICS | id/forHandle/mine |

| List channel videos | YOUTUBE_LIST_CHANNEL_VIDEOS | channelId, maxResults |

| Channel ID by handle | YOUTUBE_GET_CHANNEL_ID_BY_HANDLE | channel_handle |

| Subscribe | YOUTUBE_SUBSCRIBE_CHANNEL | channelId |

| List subscriptions | YOUTUBE_LIST_USER_SUBSCRIPTIONS | (check schema) |

| List comments | YOUTUBE_LIST_COMMENT_THREADS | videoId |

| Channel activities | YOUTUBE_GET_CHANNEL_ACTIVITIES | (check schema) |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.