run_debugger_mode
Debug application issues by activating debugger mode for web testing and automation on ARM64 devices.
Instructions
Run debugger mode to debug issues in the application
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:1029-1059 (handler)The handler function that executes the tool logic: ensures Chromium is running, evaluates JavaScript to gather debug info (URL, user agent, sizes, performance), parses it, and returns formatted text response.async runDebuggerMode() { await this.ensureChromium(); const result = await this.sendCDPCommand('Runtime.evaluate', { expression: ` JSON.stringify({ url: window.location.href, userAgent: navigator.userAgent, screenSize: \`\${screen.width}x\${screen.height}\`, viewportSize: \`\${window.innerWidth}x\${window.innerHeight}\`, performance: { memory: performance.memory ? { used: Math.round(performance.memory.usedJSHeapSize / 1024 / 1024) + 'MB', total: Math.round(performance.memory.totalJSHeapSize / 1024 / 1024) + 'MB' } : 'Not available', timing: performance.timing ? { pageLoad: performance.timing.loadEventEnd - performance.timing.navigationStart + 'ms', domReady: performance.timing.domContentLoadedEventEnd - performance.timing.navigationStart + 'ms' } : 'Not available' } }); `, returnByValue: true }); const debugInfo = JSON.parse(result.result?.value || '{}'); return { content: [{ type: 'text', text: `Debugger Mode Results:\\n${JSON.stringify(debugInfo, null, 2)}` }], }; }
- index.js:319-326 (registration)Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and empty input schema.{ name: 'run_debugger_mode', description: 'Run debugger mode to debug issues in the application', inputSchema: { type: 'object', properties: {}, }, },
- index.js:389-390 (registration)Switch case in CallToolRequestSchema handler that dispatches calls to the runDebuggerMode method.case 'run_debugger_mode': return await this.runDebuggerMode();
- index.js:322-325 (schema)Input schema definition for the tool: empty object (no parameters required).inputSchema: { type: 'object', properties: {}, },