getNetworkLogs
Capture and analyze browser network traffic data for monitoring and debugging web applications through 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)The core handler implementation for the 'getNetworkLogs' MCP tool. It registers the tool and defines its execution logic: ensures server connection via 'withServerConnection', fetches network success logs from the browser connector server endpoint '/network-success', parses the JSON response, and returns it formatted as a text content block.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), }, ], }; }); });