getNetworkLogs
Capture and analyze all network logs in a browser to monitor traffic, diagnose issues, and audit website performance using Chrome extension integration.
Instructions
Check ALL our network logs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser-tools-mcp/mcp-server.ts:234-249 (handler)Inline handler for getNetworkLogs tool: fetches network success logs from the browser connector server via HTTP GET to /network-success endpoint, wrapped in withServerConnection for discovery/reconnection, and returns formatted JSON response.server.tool("getNetworkLogs", "Check ALL our network logs", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/network-success` ); const json = await response.json(); return { content: [ { type: "text", text: JSON.stringify(json, null, 2), }, ], }; }); });
- browser-tools-mcp/mcp-server.ts:234-249 (registration)Registration of the getNetworkLogs tool on the MCP server with description 'Check ALL our network logs' and inline async handler.server.tool("getNetworkLogs", "Check ALL our network logs", async () => { return await withServerConnection(async () => { const response = await fetch( `http://${discoveredHost}:${discoveredPort}/network-success` ); const json = await response.json(); return { content: [ { type: "text", text: JSON.stringify(json, null, 2), }, ], }; }); });