get_console_errors
Retrieve JavaScript console errors from Chromium browser sessions on ARM64 devices to identify and debug web application issues during automation testing.
Instructions
Get browser console errors
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:783-787 (handler)The handler function that executes the tool logic, returning the stored console errors as a JSON string in the MCP response format.async getConsoleErrors() { return { content: [{ type: 'text', text: JSON.stringify(consoleErrors, null, 2) }], }; }
- index.js:239-246 (registration)Tool registration in the ListTools response, including name, description, and input schema (empty object).{ name: 'get_console_errors', description: 'Get browser console errors', inputSchema: { type: 'object', properties: {}, }, },
- index.js:369-370 (registration)Dispatch case in the CallToolRequestSchema handler that routes the tool call to the getConsoleErrors method.case 'get_console_errors': return await this.getConsoleErrors();
- index.js:242-245 (schema)Input schema definition for the tool, specifying an empty object (no parameters required).inputSchema: { type: 'object', properties: {}, },
- index.js:21-21 (helper)Global array that stores console error entries, populated by CDP event listeners.let consoleErrors = [];