analyze_component
Analyze a component's source code for accessibility and UX issues before committing. Works offline with HTML, JSX, Vue, Svelte, or Angular.
Instructions
[session] Static a11y + UX analysis of one component's source (HTML/JSX/Vue/Svelte/Angular). No browser, no network. Best for pre-commit feedback on a snippet. vs audit_repo: scans the whole codebase tree. vs audit_url: runs the full rule engine on a live page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentCode | Yes | Component source code (HTML/JSX/etc) | |
| componentType | No | Type of component being analyzed | |
| framework | No | Framework used for the component |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |