Skip to main content
Glama
nfodor

Chromium ARM64 Browser

by nfodor

get_network_logs

Retrieve network activity logs from the Chromium browser on ARM64 devices to monitor HTTP requests, analyze traffic patterns, and debug web applications during automation testing.

Instructions

Get network activity logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the 'get_network_logs' tool logic by returning the stored networkLogs array as formatted JSON in the MCP response format.
    async getNetworkLogs() { return { content: [{ type: 'text', text: JSON.stringify(networkLogs, null, 2) }], }; }
  • The input schema and metadata definition for the 'get_network_logs' tool, registered in the ListTools response. No input parameters required.
    { name: 'get_network_logs', description: 'Get network activity logs', inputSchema: { type: 'object', properties: {}, }, },
  • index.js:371-372 (registration)
    The switch case in the CallToolRequest handler that routes calls to the getNetworkLogs method.
    case 'get_network_logs': return await this.getNetworkLogs();
  • Global array storing network log entries collected from CDP Network.responseReceived events.
    let networkLogs = [];
  • Event listener in setupEventListeners that populates the networkLogs array on 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(); }

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/mcp-chromium-arm64'

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