YoutubeComments
youtube_commentsFetch and explore YouTube video comments: view top-level reactions or drill into specific reply threads to understand what viewers are saying about a video.
Instructions
Read YouTube video comments: top-level overview or per-thread drill-down.
Pivot from youtube when the goal is to read what viewers are saying about a video. The video tool returns the description; this tool returns the conversation.
Two views, selected by whether comment_id is set:
Overview (no comment_id): top-level comments sorted by 'top', each with author, score, pinned/uploader badges, and a yt-dlp comment id for drill-down. No replies.
Thread (comment_id=): the target top-level comment plus its replies (up to 50 per thread).
The flow matches how a human reads YouTube comments: skim top-level statements for what people thought of the video, then drill into threads that look interesting (high score, pinned, uploader replied).
URL formats accepted: same as the youtube video action — watch?v=, youtu.be/, shorts/, clip/, embed/, v/.
No authentication required. Comment-fetch failures (bot detection, private video, age-restricted) surface as user-facing error strings via the same exception mapping as youtube.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube video URL. Same forms as the Youtube tool's video action: watch?v=, youtu.be/, shorts/, clip/, embed/, v/. | |
| limit | No | Top-level overview cap. Default 30, capped at 50. yt-dlp returns comments by 'top' sort (highest score first); the cap constrains how many are rendered. Ignored when comment_id is set. | |
| comment_id | No | Drill into a specific top-level comment's thread. The id comes from the overview view's id= field on each entry. Omit for the top-level overview. |