get_icons_guide
Retrieve the PrimeIcons usage guide to understand how to implement and use PrimeNG icons in Angular UI development projects.
Instructions
Obtiene la guía de uso de PrimeIcons
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/GetIconsGuideTool.ts:9-12 (handler)GetIconsGuideTool class implementing the get_icons_guide tool by extending GetGuideTool and configuring it for the 'icons' guide.export class GetIconsGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_icons_guide', 'icons', scraperService, cacheService); }
- src/tools/GetGuideTool.ts:28-50 (handler)The execute method in GetGuideTool providing the core logic: cache check, scrape icons guide if needed, cache result, format and return response.async execute(_args: Record<string, any>): Promise<ToolResponse> { try { // Check cache first const cachedGuide = await this.cacheService.getGuide(this.guideName); if (cachedGuide) { logger.info(`Returning cached guide: ${this.guideName}`); return this.createResponse(formatGuideDoc(cachedGuide)); } // Scrape guide const guide = await this.scraperService.scrapeGuide(this.guideName); // Cache the result await this.cacheService.setGuide(this.guideName, guide); return this.createResponse(formatGuideDoc(guide)); } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return this.createErrorResponse( `Failed to get ${this.guideName} guide: ${errorMessage}` ); } }
- src/models/ToolSchemas.ts:139-148 (schema)Schema definition for the get_icons_guide tool, defining name, description, and empty input schema (no parameters required).export function createGetIconsGuideSchema(): Tool { return { name: "get_icons_guide", description: "Obtiene la guía de uso de PrimeIcons", inputSchema: { type: "object", properties: {}, }, }; }
- src/server/PrimeNGServer.ts:227-228 (registration)Registration in the tool call handler: dispatches 'get_icons_guide' calls to this.getIconsGuideTool.run(args).case "get_icons_guide": return await this.getIconsGuideTool.run(args);
- src/server/PrimeNGServer.ts:161-164 (registration)Instantiation of GetIconsGuideTool instance in PrimeNGServer.initializeTools() for use in tool handling.this.getIconsGuideTool = new GetIconsGuideTool( this.docsScraperService, this.cacheService );