Skip to main content
Glama

get_network_logs

Retrieve detailed network activity logs for browser automation and web testing on ARM64 devices using Chromium, enabling efficient monitoring and debugging of website interactions.

Instructions

Get network activity logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_network_logs' tool. It returns the stored network logs as a JSON-formatted text content block.
    async getNetworkLogs() { return { content: [{ type: 'text', text: JSON.stringify(networkLogs, null, 2) }], }; }
  • The tool schema definition registered in the ListToolsRequestHandler, specifying name, description, and empty input schema.
    name: 'get_network_logs', description: 'Get network activity logs', inputSchema: { type: 'object', properties: {}, }, },
  • index.js:371-372 (registration)
    The switch case in CallToolRequestHandler that routes calls to the getNetworkLogs handler method.
    case 'get_network_logs': return await this.getNetworkLogs();
  • Event listener code that populates the networkLogs array from CDP 'Network.responseReceived' events.
    if (message.method === 'Network.responseReceived') { const logEntry = { url: message.params.response.url, status: message.params.response.status, statusText: message.params.response.statusText, method: message.params.response.requestMethod || 'GET', timestamp: new Date().toISOString() }; networkLogs.push(logEntry); if (message.params.response.status >= 400) { networkErrors.push(logEntry); } // Keep only last 100 entries if (networkLogs.length > 100) networkLogs.shift(); if (networkErrors.length > 100) networkErrors.shift(); }
  • Global array storing the network logs collected from browser events.
    let networkLogs = [];

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nfodor/claude-arm64-browser'

If you have feedback or need assistance with the MCP directory API, please join our Discord server