From af2c674d3c2b2114779c3b95fc38664faac470b0 Mon Sep 17 00:00:00 2001 From: isidorn Date: Mon, 31 Mar 2025 15:55:21 +0200 Subject: [PATCH 1/2] Add canBeReferencedInPrompt property to tools --- chat-sample/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chat-sample/package.json b/chat-sample/package.json index 7ff419e3..878c7ac9 100644 --- a/chat-sample/package.json +++ b/chat-sample/package.json @@ -97,6 +97,7 @@ "toolReferenceName": "tabCount", "displayName": "Tab Count", "modelDescription": "The number of active tabs in a tab group", + "canBeReferencedInPrompt": true, "icon": "$(files)", "inputSchema": { "type": "object", @@ -118,6 +119,7 @@ ], "displayName": "Find Files", "modelDescription": "Search for files in the current workspace", + "canBeReferencedInPrompt": true, "inputSchema": { "type": "object", "properties": { @@ -139,6 +141,7 @@ ], "displayName": "Run in Terminal", "modelDescription": "Run a command in a terminal and return the output", + "canBeReferencedInPrompt": false, "inputSchema": { "type": "object", "properties": { From c835f5e0bd9ed2d58be0a1b18a194329790afa22 Mon Sep 17 00:00:00 2001 From: isidorn Date: Tue, 1 Apr 2025 10:34:46 +0200 Subject: [PATCH 2/2] update per review --- chat-sample/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat-sample/package.json b/chat-sample/package.json index 878c7ac9..3315376b 100644 --- a/chat-sample/package.json +++ b/chat-sample/package.json @@ -94,7 +94,7 @@ "editors", "chat-tools-sample" ], - "toolReferenceName": "tabCount", + "toolReferenceName": "countTabs", "displayName": "Tab Count", "modelDescription": "The number of active tabs in a tab group", "canBeReferencedInPrompt": true, @@ -117,6 +117,7 @@ "search", "chat-tools-sample" ], + "toolReferenceName": "findFiles", "displayName": "Find Files", "modelDescription": "Search for files in the current workspace", "canBeReferencedInPrompt": true,