Skip to content

Commit 9b175a7

Browse files
committed
update prompt for search and replace tool
1 parent 4e3ea69 commit 9b175a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/prompts/tools/search-and-replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Parameters:
77
- path: (required) The path of the file to modify (relative to the current working directory ${args.cwd.toPosix()})
88
- operations: (required) A JSON array of search/replace operations. Each operation is an object with:
99
* search: (required) The text or pattern to search for
10-
* replace: (required) The text to replace matches with
10+
* replace: (required) The text to replace matches with. If multiple lines need to be replaced, use "\n" for newlines
1111
* start_line: (optional) Starting line number for restricted replacement
1212
* end_line: (optional) Ending line number for restricted replacement
1313
* use_regex: (optional) Whether to treat search as a regex pattern

0 commit comments

Comments
 (0)