Skip to content

Commit 4374445

Browse files
committed
update insert tool to be more precise about location
1 parent e96d104 commit 4374445

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

node/tools/insert.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,11 @@ export const spec: ProviderToolSpec = {
115115
},
116116
insertAfter: {
117117
type: "string",
118-
description:
119-
"String after which to insert the content. This text will not be changed. This should be the literal text of the file - regular expressions are not allowed. Provide just enough text to uniquely identify a location in the file. Provide the empty string to insert at the beginning of the file.",
118+
description: `\
119+
String after which to insert the content.
120+
To ensure precise location matching, provide 2-3 lines of context from the target file, including the exact indentation.
121+
This text will not be changed. Regular expressions are not allowed.
122+
Provide the empty string to insert at the beginning of the file.`,
120123
},
121124
content: {
122125
type: "string",

0 commit comments

Comments
 (0)