clearActiveCollection
Clears the active collection to expand transcript searches across all available collections within the YouTube intelligence system.
Instructions
Clear the active collection so transcript search fans back out across all collections.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/lib/knowledge-base.ts:348-356 (handler)The clearActiveCollection function implementation within the knowledge base. It deletes the active_collection_id from the application state.
clearActiveCollection(): ClearActiveCollectionOutput { const previousActiveCollectionId = this.getActiveCollectionId(); this.deleteAppState("active_collection_id"); return { cleared: Boolean(previousActiveCollectionId), previousActiveCollectionId: previousActiveCollectionId ?? undefined, provenance: localProvenance(), }; } - src/server/mcp-server.ts:283-290 (registration)Definition/registration of the clearActiveCollection tool in the MCP server's tool list.
name: "clearActiveCollection", description: "Clear the active collection so transcript search fans back out across all collections.", inputSchema: { type: "object", properties: {}, additionalProperties: false, }, }, - src/server/mcp-server.ts:996-997 (handler)Tool execution logic that routes the clearActiveCollection call to the service implementation.
case "clearActiveCollection": return service.clearActiveCollection();