Skip to content

Commit 9f7483e

Browse files
committed
refactor: improve get_network_requests
1 parent aae8c0f commit 9f7483e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

docs/tool-reference.md

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

247247
### `get_network_request`
248248

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

252251
**Parameters:**
253252

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)