get_theming_guide
Retrieve the PrimeNG theming guide to customize themes, apply dark mode, and personalize UI components for Angular applications.
Instructions
Obtiene la guía de theming de PrimeNG (temas, personalización, modo oscuro)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/GetGuideTool.ts:28-50 (handler)Core handler logic for executing the get_theming_guide tool: checks cache, scrapes the 'theming' guide using DocsScraperService, caches result, formats with formatGuideDoc, and returns 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/tools/GetThemingGuideTool.ts:9-12 (handler)Specific tool handler class for 'get_theming_guide', extends GetGuideTool and configures it for the 'theming' guide section.export class GetThemingGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_theming_guide', 'theming', scraperService, cacheService); }
- src/models/ToolSchemas.ts:122-134 (schema)Input schema definition for the get_theming_guide tool (no input params required)./** * Creates the schema for get_theming_guide tool */ export function createGetThemingGuideSchema(): Tool { return { name: "get_theming_guide", description: "Obtiene la guía de theming de PrimeNG (temas, personalización, modo oscuro)", inputSchema: { type: "object", properties: {}, }, }; }
- src/server/PrimeNGServer.ts:224-225 (registration)Tool dispatch/registration in server request handler: calls getThemingGuideTool.run() for 'get_theming_guide'.case "get_theming_guide": return await this.getThemingGuideTool.run(args);
- src/server/PrimeNGServer.ts:156-159 (registration)Instantiation/registration of GetThemingGuideTool instance in PrimeNGServer.this.getThemingGuideTool = new GetThemingGuideTool( this.docsScraperService, this.cacheService );