getNetworkLogs
Capture and analyze browser network traffic data for monitoring and debugging web applications through Chrome extension integration.
Instructions
Check ALL our network logs
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getNetworkLogs"
}
}Input 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), }, ], }; }); });