From 755668a9895331c17960a565ec51f52f585490d2 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Fri, 10 Oct 2025 15:41:07 +0200 Subject: [PATCH] fix: document that console and requests are since the last nav --- docs/tool-reference.md | 4 ++-- src/tools/console.ts | 3 ++- src/tools/network.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/tool-reference.md b/docs/tool-reference.md index 070cd548..be12f101 100644 --- a/docs/tool-reference.md +++ b/docs/tool-reference.md @@ -264,7 +264,7 @@ ### `list_network_requests` -**Description:** List all requests for the currently selected page +**Description:** List all requests for the currently selected page since the last navigation. **Parameters:** @@ -298,7 +298,7 @@ so returned values have to JSON-serializable. ### `list_console_messages` -**Description:** List all console messages for the currently selected page +**Description:** List all console messages for the currently selected page since the last navigation. **Parameters:** None diff --git a/src/tools/console.ts b/src/tools/console.ts index 9a3ff114..4fb752f2 100644 --- a/src/tools/console.ts +++ b/src/tools/console.ts @@ -9,7 +9,8 @@ import {defineTool} from './ToolDefinition.js'; export const consoleTool = defineTool({ name: 'list_console_messages', - description: 'List all console messages for the currently selected page', + description: + 'List all console messages for the currently selected page since the last navigation.', annotations: { category: ToolCategories.DEBUGGING, readOnlyHint: true, diff --git a/src/tools/network.ts b/src/tools/network.ts index 5943b0f5..1fc82a5a 100644 --- a/src/tools/network.ts +++ b/src/tools/network.ts @@ -34,7 +34,7 @@ const FILTERABLE_RESOURCE_TYPES: readonly [ResourceType, ...ResourceType[]] = [ export const listNetworkRequests = defineTool({ name: 'list_network_requests', - description: `List all requests for the currently selected page`, + description: `List all requests for the currently selected page since the last navigation.`, annotations: { category: ToolCategories.NETWORK, readOnlyHint: true,