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: packages/ai-workspace-agent/src/browser/functions.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,8 @@ export class FileContentFunction implements ToolProvider {
186
186
description: `Return the content of a specified file within the workspace. The file path must be provided relative to the workspace root. Only files within
187
187
workspace boundaries are accessible; attempting to access files outside the workspace will return an error.`,
188
188
}
189
-
}
189
+
},
190
+
required: ['file']
190
191
},
191
192
handler: (arg_string: string)=>{
192
193
constfile=this.parseArg(arg_string);
@@ -249,7 +250,8 @@ export class GetWorkspaceFileList implements ToolProvider {
249
250
description: `Optional relative path to a directory within the workspace. If no path is specified, the function lists contents directly in the workspace
250
251
root. Paths are resolved within workspace boundaries only; paths outside the workspace or unvalidated paths will result in an error.`
251
252
}
252
-
}
253
+
},
254
+
required: ['path']
253
255
},
254
256
description: `List files and directories within a specified workspace directory. Paths are relative to the workspace root, and only workspace-contained paths are
255
257
allowed. If no path is provided, the root contents are listed. Paths outside the workspace will result in an error.`,
0 commit comments