You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/tools/params/tool/write-file.ts
+12-25Lines changed: 12 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -16,19 +16,13 @@ const inputSchema = z
16
16
instructions: z
17
17
.string()
18
18
.describe('What the change is intended to do in only one sentence.'),
19
-
content: z.string().describe(`Edit snippet to apply to the file.`),
19
+
content: z.string().describe(`Complete file content to write to the file.`),
20
20
})
21
-
.describe(`Create or edit a file with the given content.`)
21
+
.describe(`Create or overwrite a file with the given content.`)
22
22
constdescription=`
23
23
Create or replace a file with the given content.
24
24
25
-
#### Edit Snippet
26
-
27
-
Format the \`content\` parameter with the entire content of the file or as an edit snippet that describes how you would like to modify the provided existing code.
28
-
29
-
You may abbreviate any sections of the code in your response that will remain the same with placeholder comments: "// ... existing code ...". Abbreviate as much as possible to save the user credits!
30
-
31
-
If you don't use any placeholder comments, the entire file will be replaced. E.g. don't write out a single function without using placeholder comments unless you want to replace the entire file with that function.
25
+
Format the \`content\` parameter with the entire content of the file.
0 commit comments