Skip to main content
Glama

getConsoleErrors

Identify and monitor console errors in web browsers to debug issues and improve website performance. Integrates with Chrome for real-time error tracking.

Instructions

Check our browsers console errors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the MCP tool 'getConsoleErrors' with an inline anonymous handler function. The handler uses 'withServerConnection' to ensure connection to the browser connector server, then fetches console errors from the '/console-errors' endpoint and returns the JSON-formatted response as text content.
    server.tool( "getConsoleErrors", "Check our browsers console errors", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/console-errors` ); const json = await response.json(); return { content: [ { type: "text", text: JSON.stringify(json, null, 2), }, ], }; }); } );
  • The inline handler function for the 'getConsoleErrors' tool. It performs an HTTP GET request to the browser connector's /console-errors endpoint, parses the JSON response, and formats it as a text content block for the MCP response.
    async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/console-errors` ); const json = await response.json(); return { content: [ { type: "text", text: JSON.stringify(json, null, 2), }, ], }; }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oenius/browser-tools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server