search_profiles
Find development profiles by searching through curated prompts for UI/UX design, project setup, and debugging tasks to enhance AI-powered workflows.
Instructions
Search for profiles
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:162-177 (handler)Handler for the 'search_profiles' tool: searches for prompts with the 'profile' tag using PromptManager and returns a JSON-formatted list of matching prompts.case "search_profiles": const profilePrompts = await this.promptManager.searchPromptsByTag( "profile" ); logger.info( `Search results for "profile" in tags: ${profilePrompts.length} prompts` ); return { content: [ { type: "text", text: JSON.stringify(profilePrompts, null, 2), }, ], };
- src/prompt-manager.ts:196-218 (helper)Helper function searchPromptsByTag in PromptManager class that implements the tag-based search logic used by the search_profiles tool handler.async searchPromptsByTag(tag: string): Promise<PromptWithScore[]> { const lowercaseQuery = tag.toLowerCase(); const results: PromptWithScore[] = []; for (const prompt of this.prompts.values()) { let score = 0; // Check tags if ( prompt.tags && prompt.tags.some((tag) => tag.toLowerCase().includes(lowercaseQuery)) ) { score += 1; } if (score > 0) { results.push({ ...prompt, searchScore: score }); } } // Sort by score (descending) return results; }