clearActiveCommentCollection
Clear active comment collection to search across all collections instead of one specific set.
Instructions
Clear the active comment collection so comment search fans back out across all comment collections. [~instant]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler implementation of clearActiveCommentCollection. The clearActiveCollection() method clears the active comment collection by deleting the 'active_comment_collection_id' app state and returns information about what was cleared.
clearActiveCollection(): ClearActiveCommentCollectionOutput { const previousActiveCollectionId = this.getActiveCollectionId(); this.deleteAppState("active_comment_collection_id"); return { cleared: Boolean(previousActiveCollectionId), previousActiveCollectionId: previousActiveCollectionId ?? undefined, provenance: localProvenance(), }; } - src/lib/types.ts:824-828 (schema)Output type definition (schema) for ClearActiveCommentCollectionOutput, defining the structure of the response with cleared flag, previousActiveCollectionId, and provenance.
export interface ClearActiveCommentCollectionOutput { cleared: boolean; previousActiveCollectionId?: string; provenance: Provenance; } - src/server/mcp-server.ts:644-651 (registration)MCP tool registration defining the tool metadata including name 'clearActiveCommentCollection', description, and input schema (empty object since no parameters required).
name: "clearActiveCommentCollection", description: "Clear the active comment collection so comment search fans back out across all comment collections. [~instant]", inputSchema: { type: "object", properties: {}, additionalProperties: false, }, }, - src/server/mcp-server.ts:1177-1178 (registration)The execution wiring in the MCP server's executeTool switch statement that routes the clearActiveCommentCollection tool call to the service method.
case "clearActiveCommentCollection": return service.clearActiveCommentCollection();