Skip to main content
Glama

get_network_request

Retrieve specific network request details from Chrome DevTools using its unique identifier to analyze HTTP traffic for debugging and performance monitoring.

Instructions

Gets a network request by URL. You can get all requests by calling list_network_requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reqidYesThe reqid of a request on the page from the listed network requests

Implementation Reference

  • Handler function for the 'get_network_request' tool. It attaches the network request with the given reqid to the response.
    handler: async (request, response, _context) => { response.attachNetworkRequest(request.params.reqid); }, });
  • Input schema for the tool, defining the required 'reqid' parameter as a number.
    schema: { reqid: z .number() .describe( 'The reqid of a request on the page from the listed network requests', ), },
  • Registration of the 'get_network_request' tool using defineTool, including name, description, annotations, schema, and handler.
    export const getNetworkRequest = defineTool({ name: 'get_network_request', description: `Gets a network request by URL. You can get all requests by calling ${listNetworkRequests.name}.`, annotations: { category: ToolCategories.NETWORK, readOnlyHint: true, }, schema: { reqid: z .number() .describe( 'The reqid of a request on the page from the listed network requests', ), }, handler: async (request, response, _context) => { response.attachNetworkRequest(request.params.reqid); }, });

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/SHAY5555-gif/chrome-devtools-mcp'

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