YouTube comments of a video
youtube_commentsList a YouTube video's comments, top comments first or newest first, about 20 per page, each with author, text, likes, reply count, age, and pinned and creator-heart flags; the first page also gives the exact comment count. A video with comments turned off returns an empty page. First page: give url (and sort). Next pages: give only cursor until next_cursor is null.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "youtube_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A YouTube video link (watch, youtu.be, Shorts, live or embed link) or its 11-character id (_T8cn2J13-4). | |
| sort | No | Top comments first, or newest first. | top |
| cursor | No | The next_cursor of the previous answer, exactly as returned, for the next page. Leave it out for the first page; with it, nothing else is needed. |