dhis2_android_configure_ui_patterns
Generate Android UI patterns and components for DHIS2 apps using Jetpack Compose, XML layouts, or hybrid frameworks with accessibility and localization support.
Instructions
Generate Android UI patterns and components for DHIS2 apps
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uiFramework | Yes | UI framework to use | |
| components | Yes | UI components to generate | |
| designSystem | No | ||
| accessibility | No | ||
| localization | No |
Implementation Reference
- src/index.ts:1346-1356 (handler)Main handler for the tool call: extracts arguments and invokes the UI configuration generator function.const androidUIArgs = args as any; const uiConfig = generateAndroidUIConfiguration(androidUIArgs); return { content: [ { type: 'text', text: uiConfig, }, ], };
- src/android-generators.ts:1804-1811 (helper)Core generator function that produces the tool's output: a markdown template for Android UI configuration based on input args.export function generateAndroidUIConfiguration(args: any): string { return `# DHIS2 Android UI Configuration UI Framework: ${args.uiFramework} Components: ${args.components.join(', ')} ## Implementation details for UI patterns... `;
- src/permission-system.ts:164-164 (registration)Tool permission registration: requires 'canUseMobileFeatures' permission to access.['dhis2_android_configure_ui_patterns', 'canUseMobileFeatures'],