Skip to content

Commit e7b4a38

Browse files
committed
Update search_pattern tool to use singular pattern parameter
1 parent e90bc54 commit e7b4a38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

refact-agent/engine/src/tools/tools_description.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,16 @@ tools:
436436
- "search_key"
437437
438438
- name: "search_pattern"
439-
description: "Search for files and folders whose names or paths match the given regular expression patterns, and also search for text matches inside files using the same patterns. Reports both path matches and text matches in separate sections."
439+
description: "Search for files and folders whose names or paths match the given regular expression pattern, and also search for text matches inside files using the same patterns. Reports both path matches and text matches in separate sections."
440440
parameters:
441-
- name: "patterns"
441+
- name: "pattern"
442442
type: "string"
443-
description: "Comma-separated list of regular expression patterns. Each pattern is used to search for matching file/folder names/paths, and also for matching text inside files. Use (?i) at the start for case-insensitive search."
443+
description: "The pattern is used to search for matching file/folder names/paths, and also for matching text inside files. Use (?i) at the start for case-insensitive search."
444444
- name: "scope"
445445
type: "string"
446446
description: "'workspace' to search all files in workspace, 'dir/subdir/' to search in files within a directory, 'dir/file.ext' to search in a single file."
447447
parameters_required:
448-
- "patterns"
448+
- "pattern"
449449
- "scope"
450450
451451
- name: "create_knowledge"

0 commit comments

Comments
 (0)