setActiveCollection
Specify which YouTube transcript collection to search by default when no collection is provided, streamlining transcript analysis workflows.
Instructions
Set the default collection that transcript search should focus on when collectionId is omitted.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | Yes |
Implementation Reference
- src/server/mcp-server.ts:991-994 (handler)Tool handler for setActiveCollection in mcp-server.ts which delegates to the service class.
case "setActiveCollection": return service.setActiveCollection({ collectionId: readString(args, "collectionId"), }); - src/server/mcp-server.ts:271-281 (registration)Tool registration for setActiveCollection in mcp-server.ts.
name: "setActiveCollection", description: "Set the default collection that transcript search should focus on when collectionId is omitted.", inputSchema: { type: "object", properties: { collectionId: { type: "string" }, }, required: ["collectionId"], additionalProperties: false, }, }, - src/lib/knowledge-base.ts:331-333 (handler)Actual implementation of setActiveCollection in the knowledge-base service.
setActiveCollection(collectionId: string): SetActiveCollectionOutput { const collection = this.getCollectionSummary(collectionId); if (!collection) {