Skip to main content
Glama

clearActiveCommentCollection

Reset comment search to scan all YouTube comment collections by clearing the currently active collection filter.

Instructions

Clear the active comment collection so comment search fans back out across all comment collections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the clearActiveCommentCollection logic by deleting the active_comment_collection_id state from the database.
    clearActiveCollection(): ClearActiveCommentCollectionOutput {
      const previousActiveCollectionId = this.getActiveCollectionId();
      this.deleteAppState("active_comment_collection_id");
      return {
        cleared: Boolean(previousActiveCollectionId),
        previousActiveCollectionId: previousActiveCollectionId ?? undefined,
        provenance: localProvenance(),
      };
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rajanrengasamy/vidlens-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server