diff --git a/core/tools/definitions/createNewFile.ts b/core/tools/definitions/createNewFile.ts index f0082891c..7af42d6a8 100644 --- a/core/tools/definitions/createNewFile.ts +++ b/core/tools/definitions/createNewFile.ts @@ -8,14 +8,16 @@ export const createNewFileTool: Tool = { readonly: false, function: { name: BuiltInToolNames.CreateNewFile, - description: "Create a new file", + description: + "Create a new file. Only use this when a file doesn't exist and should be created", parameters: { type: "object", required: ["filepath", "contents"], properties: { filepath: { type: "string", - description: "The path where the new file should be created", + description: + "The path where the new file should be created, relative to the root of the workspace", }, contents: { type: "string", diff --git a/core/tools/definitions/readCurrentlyOpenFile.ts b/core/tools/definitions/readCurrentlyOpenFile.ts index 79497a158..5abc2edb1 100644 --- a/core/tools/definitions/readCurrentlyOpenFile.ts +++ b/core/tools/definitions/readCurrentlyOpenFile.ts @@ -9,7 +9,7 @@ export const readCurrentlyOpenFileTool: Tool = { function: { name: BuiltInToolNames.ReadCurrentlyOpenFile, description: - "Read the currently open file in the IDE. If the user seems to be referring to a file that you can't see, this is probably it.", + "Read the currently open file in the IDE. If the user seems to be referring to a file that you can't see, try using this", parameters: { type: "object", properties: {}, diff --git a/core/tools/definitions/readFile.ts b/core/tools/definitions/readFile.ts index 00e16ba32..4f5366e23 100644 --- a/core/tools/definitions/readFile.ts +++ b/core/tools/definitions/readFile.ts @@ -9,7 +9,7 @@ export const readFileTool: Tool = { function: { name: BuiltInToolNames.ReadFile, description: - "Use this tool whenever you need to view the contents of a file.", + "Use this tool if you need to view the contents of an existing file.", parameters: { type: "object", required: ["filepath"], @@ -17,7 +17,7 @@ export const readFileTool: Tool = { filepath: { type: "string", description: - "The path of the file to read, relative to the root of the workspace.", + "The path of the file to read, relative to the root of the workspace (NOT uri or absolute path)", }, }, }, diff --git a/core/tools/definitions/runTerminalCommand.ts b/core/tools/definitions/runTerminalCommand.ts index 82b2d342c..1b526009a 100644 --- a/core/tools/definitions/runTerminalCommand.ts +++ b/core/tools/definitions/runTerminalCommand.ts @@ -9,7 +9,7 @@ export const runTerminalCommandTool: Tool = { function: { name: BuiltInToolNames.RunTerminalCommand, description: - "Run a terminal command in the current directory. The shell is not stateful and will not remember any previous commands.", + "Run a terminal command in the current directory. The shell is not stateful and will not remember any previous commands. Do NOT perform actions requiring special/admin priveleges.", parameters: { type: "object", required: ["command"], @@ -17,7 +17,7 @@ export const runTerminalCommandTool: Tool = { command: { type: "string", description: - "The command to run. This will be passed directly into the shell.", + "The command to run. This will be passed directly into the IDE shell.", }, }, }, diff --git a/core/tools/definitions/searchWeb.ts b/core/tools/definitions/searchWeb.ts index c5868f3e0..dfbcb04f7 100644 --- a/core/tools/definitions/searchWeb.ts +++ b/core/tools/definitions/searchWeb.ts @@ -10,7 +10,7 @@ export const searchWebTool: Tool = { function: { name: BuiltInToolNames.SearchWeb, description: - "Performs a web search, returning top results. This tool should only be called for questions that require external knowledge. Common programming questions do not require web search.", + "Performs a web search, returning top results. Use this tool sparingly - only for questions that require specialized, external, and/or up-to-date knowledege. Common programming questions do not require web search.", parameters: { type: "object", required: ["query"],