frontend_validateAll
Scan frontend code for critical violations that block deployments: hardcoded addresses, outdated hooks, dangerous configs, and security issues. Audit to fix before deployment.
Instructions
Scan entire frontend for ALL critical rule violations.
This tool performs a comprehensive scan of your frontend code for:
CRITICAL (would block writes):
Hardcoded contract addresses (use useDeployedContractInfo instead)
Raw wagmi hooks (use scaffold-eth hooks)
Infinite token approvals (security risk!)
Old hook names (useScaffoldContractRead → useScaffoldReadContract)
Dangerous config changes (onlyLocalBurnerWallet: false)
WARNINGS (non-blocking):
Inline ABI definitions (should use deployedContracts/externalContracts)
Generic hardcoded addresses (may be intentional)
Use this tool to audit your codebase before deployment or to find existing issues.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "frontend_validateAll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative path to scan (default: 'packages/nextjs') | |
| includeWarnings | No | Include warning-level issues in results (default: true) |