Chrome DevTools for coding agents
fix: document that console and requests are since the last nav (#335)
Alex Rudenko9ad7cbb2de3d
diff --git a/docs/tool-reference.md b/docs/tool-reference.mdindex 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:** Nonediff --git a/src/tools/console.ts b/src/tools/console.tsindex 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.tsindex 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,