run_audit_mode
Enable audit mode to analyze and optimize browser performance on ARM64 devices, supporting automated testing, JavaScript execution, and UI functionality checks.
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 primary handler function for the 'run_audit_mode' tool. It orchestrates multiple specialized audits (accessibility, performance, SEO, best practices, and Next.js-specific) and compiles their results into 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:327-334 (registration)Tool registration entry in the list of available tools, defining the name, description, and input schema (empty object, no parameters required). This is used by the ListTools handler.{ name: 'run_audit_mode', description: 'Run comprehensive audit mode for optimization', inputSchema: { type: 'object', properties: {}, }, },
- index.js:391-392 (registration)Dispatch case in the CallToolRequestSchema handler that routes calls to the 'run_audit_mode' tool to the runAuditMode() method.case 'run_audit_mode': return await this.runAuditMode();
- index.js:330-333 (schema)Input schema definition for the tool, specifying an empty object (no required parameters).inputSchema: { type: 'object', properties: {}, },