get_theme_usage
Access theme implementation guidelines and usage instructions for Modus Web Components to apply consistent design system standards in your 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 for the 'get_theme_usage' tool. It retrieves the theme usage guide from the loaded setup documentation and returns it as content, or an error if not found.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)Registration of the 'get_theme_usage' tool in the list of available tools, including 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-333 (registration)Dispatcher case in the CallToolRequestSchema handler that routes calls to the getThemeUsage method.case "get_theme_usage": return await this.getThemeUsage();
- src/index.ts:280-283 (schema)Input schema definition for the 'get_theme_usage' tool, which requires no parameters.inputSchema: { type: "object", properties: {}, },
- src/index.ts:150-150 (helper)Helper code in loadSetup that maps the 'setup_theme_usage.md' filename to setupType 'theme', enabling the tool to find it.if (setupType === "theme_usage") setupType = "theme";