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.
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": {
"componentCode": "<componentCode>"
},
"name": "analyze_component"
}
}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 |