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.
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 |