Skip to content

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

Closed

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


Activity

  1. mithun50 commented on Oct 1, 2025

    @mithun50
    ContributorAuthor

    @OrKoN if you assign to me I can work on this issue

  2. Lightning00Blade commented on Oct 1, 2025

    @Lightning00Blade
    Collaborator

    A PR for fixing this landed - #236
    Will be release as part of v0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions