Review Frontend Code
review_codePROACTIVE CODE REVIEW: Runs a conservative, non-exhaustive static heuristic review of HTML/CSS/JS code against multiple frontend best practice rules simultaneously. Use this tool FIRST when reviewing, debugging, or improving any frontend code - it detects the code type and checks relevant rules it can prove from the snippet. Returns prioritized issues with fix guidance when static evidence is available, plus suggestions for rule retrieval when manual or rendered-state review is needed.
Workflow: Use as the FIRST step for any code review. For each issue found, use fix_rule for remediation guidance or get_rule for complete context. If no issues are returned, treat that as "no provable static issue found", then follow suggestions with search_rules or get_rule before concluding the implementation is clean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The HTML, CSS, or JavaScript code to review | |
| focus | No | Optional: Focus review on specific categories (default: auto-detect from code) | |
| minPriority | No | Optional: Minimum priority level to report (default: medium) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | No | ||
| summary | No | ||
| suggestions | No |