run_audit_mode
Execute comprehensive audits to optimize web performance and identify issues for testing workflows 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 core handler function that executes the run_audit_mode tool by aggregating results from multiple specialized audit functions (accessibility, performance, SEO, best practices, and Next.js audits).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 CallToolRequestSchema handler that routes calls to the 'run_audit_mode' tool to its implementation method.case 'run_audit_mode': return await this.runAuditMode();
- index.js:327-334 (registration)Tool registration in the ListToolsRequestSchema response, defining the tool 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 for the run_audit_mode tool, which requires no parameters (empty properties).inputSchema: { type: 'object', properties: {}, },