get_theme_usage
Retrieve theme implementation guidelines and usage instructions for Modus Web Components to apply design system standards in development projects.
Instructions
Get theme implementation guidelines and usage instructions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:707-731 (handler)The handler function that finds the theme setup guide in loaded documents and returns its markdown content as a tool response.private async getThemeUsage(): Promise<any> { const themeGuide = this.setup.find( (s) => s.setupType === "theme" || s.filename.includes("theme") ); if (!themeGuide) { return { content: [ { type: "text", text: "Theme usage guide not found. Please run: node download-docs.js", }, ], }; } return { content: [ { type: "text", text: themeGuide.content, }, ], }; }
- src/index.ts:276-284 (registration)Tool registration in the ListTools response, defining name, description, and empty input schema.{ name: "get_theme_usage", description: "Get theme implementation guidelines and usage instructions.", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:332-334 (registration)Dispatch case in the CallTool handler that invokes the getThemeUsage method.case "get_theme_usage": return await this.getThemeUsage();
- src/index.ts:148-151 (helper)Helper code in loadSetup that maps the 'theme_usage.md' filename to setupType 'theme', enabling the handler to find it.// Map filenames to more user-friendly types if (setupType === "universal_rules") setupType = "universal"; if (setupType === "theme_usage") setupType = "theme";
- src/index.ts:280-283 (schema)Input schema definition for the tool (empty object, no parameters required).inputSchema: { type: "object", properties: {}, },