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
| Name | Required | Description | Default |
|---|---|---|---|
| reqid | Yes | The reqid of a request on the page from the listed network requests |
Implementation Reference
- src/tools/network.ts:89-92 (handler)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); }, });
- src/tools/network.ts:82-88 (schema)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', ), },
- src/tools/network.ts:75-92 (registration)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); }, });