Get Rule Fix
fix_ruleReturns step-by-step remediation guidance and priority for one named frontend rule. Use it when the user requests implementation or fix instructions for a known issue. Optional codeSnippet provides context; the tool does not edit files or apply changes.
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": "fix_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| codeSnippet | No | Code that violates the rule, so the fix guidance can reference it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| title | No | ||
| message | No | ||
| priority | No | ||
| fixPrompt | No | ||
| codeContext | No | ||
| suggestions | No |