getNetworkErrors
Retrieve network error logs from browser sessions to identify and troubleshoot connectivity issues, failed requests, and HTTP errors during web interactions.
Instructions
Check our network ERROR logs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser-tools-mcp/mcp-server.ts:216-232 (handler)Handler and registration for the 'getNetworkErrors' MCP tool. Fetches network error logs from the browser connector server at '/network-errors' endpoint using the discovered host/port, stringifies the JSON response, and marks it as an error.
server.tool("getNetworkErrors", "Check our network ERROR logs", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/network-errors` ); const json = await response.json(); return { content: [ { type: "text", text: JSON.stringify(json, null, 2), }, ], isError: true, }; }); });