Get comments
get_commentsGet the top-level comments of a YouTube video, each with its like and reply count.
Costs 1 credit per 100 comments returned, replies included, rounded up (minimum 1): up
to 100 comments cost 1 credit, 101-200 cost 2. Videos with comments turned off cost
nothing.
Args:
video_id: YouTube video ID (11 characters)
limit: Number of comments to fetch (default 20, max 500)
sort: "top" (default) or "new" (newest first)
include_replies: Also fetch the replies of each comment (default false)
replies_per_comment: With include_replies, most replies per comment (1-100,
default 10)
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": {
"video_id": "<video_id>"
},
"name": "get_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | top | |
| limit | No | ||
| video_id | Yes | ||
| include_replies | No | ||
| replies_per_comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |