getConsoleLogs
Capture and monitor browser console logs with a Chrome extension to analyze errors, warnings, and messages for improved debugging and performance tracking.
Instructions
Check our browser logs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser-tools-mcp/mcp-server.ts:178-193 (handler)The complete inline handler and registration for the 'getConsoleLogs' tool. It uses 'withServerConnection' to fetch console logs from the browser server at '/console-logs' endpoint, parses the JSON response, and returns it formatted as a text content block in MCP format.server.tool("getConsoleLogs", "Check our browser logs", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/console-logs` ); const json = await response.json(); return { content: [ { type: "text", text: JSON.stringify(json, null, 2), }, ], }; }); });