Add userDescriptions to search tools (#2576)

This commit is contained in:
Rob Lourens
2025-12-14 03:43:08 +00:00
committed by GitHub
parent e954550fcc
commit 4c76d60f81
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -245,6 +245,7 @@
"name": "copilot_findFiles",
"toolReferenceName": "fileSearch",
"displayName": "%copilot.tools.findFiles.name%",
"userDescription": "%copilot.tools.findFiles.userDescription%",
"modelDescription": "Search for files in the workspace by glob pattern. This only returns the paths of matching files. Use this tool when you know the exact filename pattern of the files you're searching for. Glob patterns match from the root of the workspace folder. Examples:\n- **/*.{js,ts} to match all js/ts files in the workspace.\n- src/** to match all files under the top-level src folder.\n- **/foo/**/*.js to match all js files under any foo folder in the workspace.",
"tags": [
"vscode_codesearch"
@@ -270,6 +271,7 @@
"name": "copilot_findTextInFiles",
"toolReferenceName": "textSearch",
"displayName": "%copilot.tools.findTextInFiles.name%",
"userDescription": "%copilot.tools.findTextInFiles.userDescription%",
"modelDescription": "Do a fast text search in the workspace. Use this tool when you want to search with an exact string or regex. If you are not sure what words will appear in the workspace, prefer using regex patterns with alternation (|) or character classes to search for multiple potential words at once instead of making separate searches. For example, use 'function|method|procedure' to look for all of those words at once. Use includePattern to search within files matching a specific pattern, or in a specific file, using a relative path. Use 'includeIgnoredFiles' to include files normally ignored by .gitignore, other ignore files, and `files.exclude` and `search.exclude` settings. Warning: using this may cause the search to be slower, only set it when you want to search in ignored folders like node_modules or build outputs. Use this tool when you want to see an overview of a particular file, instead of using read_file many times to look for code within a file.",
"tags": [
"vscode_codesearch"
@@ -367,6 +369,7 @@
"name": "copilot_listDirectory",
"toolReferenceName": "listDirectory",
"displayName": "%copilot.tools.listDirectory.name%",
"userDescription": "%copilot.tools.listDirectory.userDescription%",
"modelDescription": "List the contents of a directory. Result will have the name of the child. If the name ends in /, it's a folder, otherwise a file",
"tags": [
"vscode_codesearch"
+3
View File
@@ -261,11 +261,14 @@
"copilot.tools.getVSCodeAPI.name": "Get VS Code API References",
"copilot.tools.findFiles.name": "Find Files",
"copilot.tools.findFiles.userDescription": "Find files by name using a glob pattern",
"copilot.tools.findTextInFiles.name": "Find Text In Files",
"copilot.tools.findTextInFiles.userDescription": "Search for text in files by regular expression",
"copilot.tools.applyPatch.name": "Apply Patch",
"copilot.tools.readFile.name": "Read File",
"copilot.tools.readFile.userDescription": "Read the contents of a file",
"copilot.tools.listDirectory.name": "List Dir",
"copilot.tools.listDirectory.userDescription": "List the contents of a directory",
"copilot.tools.getTaskOutput.name": "Get Task Output",
"copilot.tools.getErrors.name": "Get Problems",
"copilot.tools.readProjectStructure.name": "Project Structure",