Comments on a YouTube video
youtube_video_commentsComments on a YouTube video, top or newest first, paginated.
Top-level comments, 20 a page: order=top (YouTube’s ranking, default) or newest. Each thread has the comment (author, text, likes, pinned/hearted/creator flags) and totalReplyCount; pass its repliesToken to youtube_comment_replies. textFormat=plainText for text without HTML. The first page carries the video’s exact commentCount. Comments turned off answer an empty list.
Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "youtube_video_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A video or Short id, or any URL of it (watch, youtu.be, shorts, live, embed). | |
| after | No | The previous page’s `nextPageToken`. Tokens last 6 hours. | |
| order | No | top (default) or newest. | |
| textFormat | No | html (default) or plainText. |