Video Comments
video_commentsFetch top YouTube comments sorted by relevance to analyze audience feedback, returning comment text, like count, and author for each retrieved comment.
Instructions
Fetch top YouTube comments sorted by relevance.
Returns comment text, like count, and author for each comment. Costs 1+ YouTube API units, 0 Gemini units.
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": {
"url": "<url>"
},
"name": "video_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube video URL (youtube.com or youtu.be) | |
| max_comments | No | Maximum comments to fetch (sorted by relevance) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||