video_comments
Fetch top YouTube comments sorted by relevance to analyze audience engagement and feedback on video content.
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.
Args: url: YouTube video URL. max_comments: Maximum number of comments to return.
Returns: Dict with video_id, comments list, and count, or error via make_tool_error().
Input Schema
TableJSON 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) |