clear_cache
Remove stored YouTube transcript data to free storage space and ensure fresh transcript retrieval for the YouTube Transcript DL MCP Server.
Instructions
Clear the transcript cache
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/mcp-server.ts:332-341 (handler)Primary handler function for the 'clear_cache' MCP tool. Delegates cache clearing to the YouTubeTranscriptService and returns a standardized success response.private async handleClearCache() { this.transcriptService.clearCache(); return { content: [{ type: 'text', text: 'Cache cleared successfully' }] }; }
- Core implementation that actually clears the transcript cache by flushing the internal Cache instance.public clearCache(): void { this.cache.flush(); }
- src/server/mcp-server.ts:214-221 (registration)Tool registration in the list of available tools, including schema definition (no input parameters required).{ name: 'clear_cache', description: 'Clear the transcript cache', inputSchema: { type: 'object', properties: {} } },