run_audit_mode
Execute comprehensive browser audits to identify optimization opportunities for web performance, accessibility, and security during automated testing on ARM64 devices.
Instructions
Run comprehensive audit mode for optimization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:1061-1081 (handler)The main handler function for 'run_audit_mode' tool. It orchestrates multiple individual audit methods (accessibility, performance, SEO, best practices, Next.js) and compiles a comprehensive summary and full report.async runAuditMode() { const results = {}; results.accessibility = await this.runAccessibilityAudit(); results.performance = await this.runPerformanceAudit(); results.seo = await this.runSEOAudit(); results.bestPractices = await this.runBestPracticesAudit(); results.nextjs = await this.runNextJSAudit(); const summary = Object.entries(results) .map(([category, result]) => `${category}: ${result.isError ? 'FAILED' : 'COMPLETED'}`) .join('\\n'); const fullReport = Object.entries(results) .map(([category, result]) => `\\n=== ${category.toUpperCase()} ===\\n${result.content[0].text}`) .join('\\n'); return { content: [{ type: 'text', text: `Comprehensive Audit Mode Results:\\n\\nSUMMARY:\\n${summary}\\n\\nFULL REPORT:${fullReport}` }], }; }
- index.js:391-392 (registration)The switch case in the CallToolRequest handler that dispatches calls to the runAuditMode method.case 'run_audit_mode': return await this.runAuditMode();
- index.js:327-334 (registration)The tool registration in the ListTools response, including name, description, and empty input schema.{ name: 'run_audit_mode', description: 'Run comprehensive audit mode for optimization', inputSchema: { type: 'object', properties: {}, }, },
- index.js:330-333 (schema)The input schema definition for the 'run_audit_mode' tool (no required parameters).inputSchema: { type: 'object', properties: {}, },