Skip to content

Bug: get_network_request tool returns all requests instead of the specified one #233

@mithun50

Description

@mithun50

Describe the bug
The get_network_request tool in src/tools/network.ts is designed to fetch a single network request by its URL. However, the handler currently includes a call to response.setIncludeNetworkRequests(true), which causes the tool to return all captured network requests instead of just the one specified by the URL. This makes the output noisy and incorrect.


To Reproduce
Steps to reproduce the behavior:

  1. Run a page session where multiple network requests are made.

  2. Call the get_network_request tool with a specific URL parameter.

  3. Observe that the response contains all network requests for the page, not just the specified one.


Expected behavior
The get_network_request tool should only return the single request that matches the provided URL. To retrieve multiple or filtered requests, the list_network_requests tool should be used instead.


Screenshots
N/A


Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions