get_icons_guide
Access the PrimeIcons usage guide to find and implement icons in Angular UI development with PrimeNG components.
Instructions
Obtiene la guía de uso de PrimeIcons
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/GetGuideTool.ts:28-50 (handler)Core handler function that implements the tool logic for get_icons_guide: checks cache for 'icons' guide, scrapes from DocsScraperService if missing, caches the result, formats with formatGuideDoc, and returns the response or error.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, including 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:161-164 (registration)Registration: Instantiates the GetIconsGuideTool with scraper and cache services.this.getIconsGuideTool = new GetIconsGuideTool( this.docsScraperService, this.cacheService );
- src/server/PrimeNGServer.ts:227-228 (registration)Registration: Handles tool calls by dispatching to the getIconsGuideTool's run method.case "get_icons_guide": return await this.getIconsGuideTool.run(args);
- src/tools/GetIconsGuideTool.ts:9-13 (handler)Tool class specific to get_icons_guide, extending GetGuideTool and configuring tool name and guide name ('icons').export class GetIconsGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_icons_guide', 'icons', scraperService, cacheService); } }