Skip to content

Commit 1fa7dab

Browse files
committed
refactor: improve get_network_requests
1 parent 60fd66e commit 1fa7dab

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/tool-reference.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@
256256

257257
### `get_network_request`
258258

259-
**Description:** Gets a network request by reqid. You can get all requests by calling [`list_network_requests`](#list_network_requests).
260-
Get the request currently selected in the DevTools UI by ommitting reqid
259+
**Description:** Gets a network request by an optional reqid, if omitted returns the request selected in DevTools UI.
261260

262261
**Parameters:**
263262

src/tools/network.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ export const listNetworkRequests = defineTool({
8484

8585
export const getNetworkRequest = defineTool({
8686
name: 'get_network_request',
87-
description: `Gets a network request by reqid. You can get all requests by calling ${listNetworkRequests.name}.
88-
Get the request currently selected in the DevTools UI by ommitting reqid`,
87+
description: `Gets a network request by an optional reqid, if omitted returns the request selected in DevTools UI.`,
8988
annotations: {
9089
category: ToolCategory.NETWORK,
9190
readOnlyHint: true,

0 commit comments

Comments
 (0)