YouTube tools for AI coding agents — search, transcripts, video info, channel browsing, playlists
Strong tool naming (verb_noun pattern), comprehensive descriptions (avg 180 chars), and explicit Zod schemas for all 9 tools. Tool annotations present (readOnlyHint/destructiveHint). However, output schemas are not documented in the source, LLMs cannot predict response structure. Parameter descriptions are present but some lack format/constraint details (e.g., 'clips' array structure undefined). Error handling and recovery guidance absent from descriptions.
Extract one or more clips from a YouTube video by timestamp. Downloads the source video once at 720p, then cuts each clip. Each clip needs startTime and endTime (seconds, MM:SS, or HH:MM:SS) and an optional label for the filename. Uses fast keyframe-aligned cuts by default — do NOT set accurate: true unless the user explicitly asks for frame-perfect precision (it re-encodes and is much slower). Keep clips tight — 5-10 seconds each, capturing one key moment per clip. When 2+ clips are provided, automatically produces a per-video highlight reel alongside individual clips.
Download a YouTube video or audio track to a local file. Defaults to 720p quality. Supports quality selection (720p/1080p/best/etc.), download type (video+audio/audio/video), and format. Videos over 30 minutes trigger a confirmation prompt — use force: true to bypass. For video+audio, automatically downloads and muxes separate streams.
Get metadata for a YouTube channel — name, handle, description, subscriber count, country, and more. Accepts @handle, full URL, or channel ID.
List videos from a YouTube channel. Accepts @handle, full URL, or channel ID. Returns videos sorted by newest, popular, or oldest.
Get a YouTube playlist's metadata and its videos. Returns title, description, channel, video count, and the list of videos with their positions.
Output schemas not documented. LLMs cannot predict response structure (fields, types, pagination). Forces agents to guess what data is available after each call.
Complex parameter structures (e.g., 'clips' array in youtube_clip) lack detailed schema documentation. Description says 'Array of clip definitions with startTime, endTime, and optional label' but does not specify exact field names, types, or time format (seconds vs MM:SS vs HH:MM:SS).
No error handling or recovery guidance in descriptions. Tools do not document what happens on network failure, invalid video ID, missing transcript, or permission errors. LLMs have no guidance on retry vs user-fixable vs fatal.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Get the transcript of a YouTube video. Control output size with: "format" — "text" (fullText only, smallest), "segments" (timestamps only), or "both" (default). Use "startTime"/"endTime" (seconds) to grab a specific section (pairs well with chapter timestamps from youtube_get_video_info). Use "maxSegments" to cap output for previewing long videos.
Get metadata for a YouTube video. Use "detail" to control response size: "brief" (key stats only — title, channel, views, likes, duration), "standard" (default — most fields, truncated description, chapter count), or "full" (everything including full description, chapters, tags, thumbnail).
Combine existing clip files into a single highlight reel. Pass file paths from previous youtube_clip results in your desired playback order. Use this after clipping multiple videos to create one combined reel across all sources. The order of the clips array determines playback order — arrange clips for narrative flow before calling.
Search YouTube for videos, channels, or playlists. Supports filtering by upload date (today/week/month/year), duration (short/medium/long), and sorting (relevance/date/views/rating). Returns results with metadata including title, channel, views, duration, and whether results are personalized.
Destructive tools (youtube_download, youtube_clip) lack confirmation/dry-run pattern. Description mentions 'force: true to bypass confirmation' but no guidance on when LLM should request user approval before overwriting files or consuming bandwidth.
Result limits not enforced or documented. youtube_search and youtube_get_channel_videos accept 'limit' parameter but no guidance on max value, default, or pagination strategy. Large result sets risk context window exhaustion.