getComments
Retrieve YouTube video comments sorted by relevance or time. Use nextPageToken to paginate through additional comments.
Instructions
Fetch YouTube video comments with pagination. Supports sorting by relevance or time. Use nextPageToken for pagination.
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": "getComments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | YouTube video URL or ID (required for first page) | |
| sort | No | Sort: relevance or time | relevance |
| limit | No | Max comments to return (1-100) | |
| pageToken | No | Pagination token from previous response |