check_html
Validate generated HTML/JSX against melta-ui lint rules to catch class, attribute, and composition violations before presenting UI code.
Instructions
Lint a full HTML/JSX source against melta-ui rules — the same checks as CI and the PostToolUse hook (class rules + html-attr rules + composition rules for HTML). Use this AFTER generating UI code to self-verify before presenting it. Response always includes coverage info (manual rules cannot be auto-checked).
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": {
"source": "<source>"
},
"name": "check_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full source code to lint (HTML / JSX / Vue template) | |
| sourceType | No | Source type. "html" (default) also runs composition lint (nested modal etc.); "jsx" runs class + attr lint only |