importComments
Import YouTube video comments into a local knowledge base to enable semantic search and analysis of viewer discussions.
Instructions
Import a video's comments into the local comment knowledge base for semantic search. Fetches comments via the existing comment pipeline and indexes them for searchComments. [~3-10s]
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": {
"videoIdOrUrl": "<videoIdOrUrl>"
},
"name": "importComments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| videoIdOrUrl | Yes | YouTube video URL or ID | |
| collectionId | No | Custom collection ID (default: comments-{videoId}) | |
| maxTopLevel | No | Max top-level comments to fetch | |
| includeReplies | No | Include reply threads (default: true) | |
| maxRepliesPerThread | No | ||
| order | No | ||
| label | No | Human-readable collection label | |
| activateCollection | No | Set as active comment collection (default: true) | |
| dryRun | No |