Check Rule Compliance
check_ruleChecks a code snippet against one named frontend rule using static heuristics and returns findings and verification guidance. Without code, returns manual verification guidance. Use it when the user requests a check of a specific rule or a proposed fix. Results do not establish rendered-state or runtime conformance.
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": {
"slug": "<slug>"
},
"name": "check_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code to test against the rule. Omit to get manual verification steps. | |
| slug | Yes | Rule slug: the kebab-case rule ID, e.g. 'alt-text' or 'doctype'. The ID must identify a rule in the published catalogue. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| title | No | ||
| message | No | ||
| analysis | No | ||
| fixPrompt | No | ||
| categories | No | ||
| checkPrompt | No | ||
| suggestions | No |