importComments
Fetch YouTube video comments and index them into a local knowledge base for semantic search, enabling AI agents to analyze and retrieve insights from 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.
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 |