Standardize parameter description references in Edit and MultiEdit tools (#984)

This commit is contained in:
Mike Wallio
2025-07-14 20:03:59 -04:00
committed by GitHub
parent 2cdb37c32b
commit f593792fb5
3 changed files with 12 additions and 12 deletions

View File

@@ -20,8 +20,8 @@ export const EditTool = Tool.define({
parameters: z.object({
filePath: z.string().describe("The absolute path to the file to modify"),
oldString: z.string().describe("The text to replace"),
newString: z.string().describe("The text to replace it with (must be different from old_string)"),
replaceAll: z.boolean().optional().describe("Replace all occurrences of old_string (default false)"),
newString: z.string().describe("The text to replace it with (must be different from oldString)"),
replaceAll: z.boolean().optional().describe("Replace all occurrences of oldString (default false)"),
}),
async execute(params, ctx) {
if (!params.filePath) {