-
Notifications
You must be signed in to change notification settings - Fork 608
Description
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:
-
Run a page session where multiple network requests are made.
-
Call the get_network_request tool with a specific URL parameter.
-
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