Skip to content

Commit 03fda47

Browse files
authored
refactor: specify grep search tool to use regex (#8384)
* refactor: specify grep search tool to use regex * more refinement
1 parent 5fa2415 commit 03fda47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/tools/definitions/grepSearch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ export const grepSearchTool: Tool = {
1313
function: {
1414
name: BuiltInToolNames.GrepSearch,
1515
description:
16-
"Perform a search over the repository using ripgrep. Will not include results for many build, cache, secrets dirs/files. Output may be truncated, so use targeted queries",
16+
"Performs a regex search over the repository using ripgrep. Will not include results for many build, cache, secrets dirs/files. Output may be truncated, so use targeted queries",
1717
parameters: {
1818
type: "object",
1919
required: ["query"],
2020
properties: {
2121
query: {
2222
type: "string",
2323
description:
24-
"The search query to use. Must be a valid ripgrep regex expression, escaped where needed",
24+
"The search query to use. Must be the exact string to be searched or a valid ripgrep expression. Use regex with alternation (e.g., 'word1|word2|word3) or character classes to find multiple potential words in a single search.",
2525
},
2626
},
2727
},

0 commit comments

Comments
 (0)