seo_validate_code_fix
Validates modified source files for syntax errors, duplicate meta/title tags, and broken JSON-LD, then calculates before vs after SEO score improvements.
Instructions
Validates modified source files against syntax errors, duplicate meta/title tags, broken JSON-LD syntax, and calculates Before vs After SEO score improvements.
USAGE GUIDELINES:
Use immediately after generating or applying a code fix via 'seo_generate_code_fix' to verify correctness.
Do NOT use as a standalone audit on unedited files; use 'seo_audit_onpage' or 'seo_generate_full_audit' instead.
BEHAVIORAL TRANSPARENCY:
Safe, read-only file validation. Reads the modified file and performs AST/regex checks without making further modifications.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the modified source code file to validate. | |
| beforeScores | No | Optional map of previous dimension scores (0-100) to compute exact before vs after score delta. |