analyze_component_library
Detect the UI component library in your source code, analyze usage patterns, and receive migration suggestions.
Instructions
Analyze component source code to detect which library is used, identify patterns, and get migration suggestions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "analyze_component_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Component source code to analyze | |
| filePath | No | File path for context (e.g., src/components/Button.tsx) | |
| detectLibrary | No | Detect which component library is being used | |
| analyzePatterns | No | Analyze component patterns and structure | |
| suggestMigration | No | Suggest migration path to a target library | |
| targetLibrary | No | Target library for migration suggestions |