clear_filters
Remove all domain filters to switch search contexts or start fresh. This action clears both allowed and blocked domains while preserving recency settings.
Instructions
Remove all domain filters (both allowed and blocked). Use when switching search contexts or starting fresh. Does not affect recency filter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The MCP tool handler for 'clear_filters'. Calls FilterState.clearFilters() to reset filters and returns a formatted text response.async handleClearFilters() { const resultMessage = this.filterState.clearFilters(); return { content: [ { type: "text", text: resultMessage, }, ], }; }
- src/models/FilterState.ts:75-83 (helper)Core implementation that resets domainFilters to empty lists and recencyFilter to null, returning a confirmation message.clearFilters(): string { this.domainFilters = { allowedDomains: [], blockedDomains: [], }; this.recencyFilter = null; return "All domain and recency filters have been cleared. Searches will use default Perplexity sources."; }
- src/schemas/toolSchemas.ts:60-67 (schema)Input schema definition for the 'clear_filters' tool (no parameters required).{ name: "clear_filters", description: "Remove all domain filters (both allowed and blocked). Use when switching search contexts or starting fresh. Does not affect recency filter.", inputSchema: { type: "object", properties: {}, }, },
- src/server/PerplexityMcpServer.ts:123-124 (registration)Tool dispatch/registration in the MCP server's call_tool handler switch statement.case "clear_filters": return this.filterManagementHandler.handleClearFilters();