@@ -153,6 +153,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
153153 tls := []tools.Tool {
154154 {
155155 Name : "create_directory" ,
156+ Category : "filesystem" ,
156157 Description : "Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation." ,
157158 Parameters : tools .MustSchemaFor [CreateDirectoryArgs ](),
158159 OutputSchema : tools .MustSchemaFor [string ](),
@@ -163,6 +164,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
163164 },
164165 {
165166 Name : "directory_tree" ,
167+ Category : "filesystem" ,
166168 Description : "Get a recursive tree view of files and directories as a JSON structure." ,
167169 Parameters : tools .MustSchemaFor [DirectoryTreeArgs ](),
168170 // Manually define the schema here because
@@ -197,6 +199,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
197199 },
198200 {
199201 Name : "edit_file" ,
202+ Category : "filesystem" ,
200203 Description : "Make line-based edits to a text file. Each edit replaces exact line sequences with new content." ,
201204 Parameters : tools .MustSchemaFor [EditFileArgs ](),
202205 OutputSchema : tools .MustSchemaFor [string ](),
@@ -207,6 +210,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
207210 },
208211 {
209212 Name : "get_file_info" ,
213+ Category : "filesystem" ,
210214 Description : "Retrieve detailed metadata about a file or directory." ,
211215 Parameters : tools .MustSchemaFor [GetFileInfoArgs ](),
212216 OutputSchema : tools .MustSchemaFor [FileInfo ](),
@@ -218,6 +222,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
218222 },
219223 {
220224 Name : "list_allowed_directories" ,
225+ Category : "filesystem" ,
221226 Description : "Returns a list of directories that the server has permission to access. Don't call if you access only the current working directory. It's always allowed." ,
222227 OutputSchema : tools .MustSchemaFor [string ](),
223228 Handler : t .handleListAllowedDirectories ,
@@ -228,6 +233,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
228233 },
229234 {
230235 Name : "add_allowed_directory" ,
236+ Category : "filesystem" ,
231237 Description : "Request to add a new directory to the allowed directories list. This requires explicit user consent for security reasons." ,
232238 Parameters : tools .MustSchemaFor [AddAllowedDirectoryArgs ](),
233239 OutputSchema : tools .MustSchemaFor [string ](),
@@ -238,6 +244,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
238244 },
239245 {
240246 Name : "list_directory" ,
247+ Category : "filesystem" ,
241248 Description : "Get a detailed listing of all files and directories in a specified path." ,
242249 Parameters : tools .MustSchemaFor [ListDirectoryArgs ](),
243250 OutputSchema : tools .MustSchemaFor [string ](),
@@ -249,6 +256,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
249256 },
250257 {
251258 Name : "list_directory_with_sizes" ,
259+ Category : "filesystem" ,
252260 Description : "Get a detailed listing of all files and directories in a specified path, including sizes." ,
253261 Parameters : tools .MustSchemaFor [ListDirectoryArgs ](),
254262 OutputSchema : tools .MustSchemaFor [string ](),
@@ -260,6 +268,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
260268 },
261269 {
262270 Name : "move_file" ,
271+ Category : "filesystem" ,
263272 Description : "Move or rename files and directories." ,
264273 Parameters : tools .MustSchemaFor [MoveFileArgs ](),
265274 OutputSchema : tools .MustSchemaFor [string ](),
@@ -270,6 +279,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
270279 },
271280 {
272281 Name : "read_file" ,
282+ Category : "filesystem" ,
273283 Description : "Read the complete contents of a file from the file system." ,
274284 Parameters : tools .MustSchemaFor [ReadFileArgs ](),
275285 OutputSchema : tools .MustSchemaFor [string ](),
@@ -281,6 +291,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
281291 },
282292 {
283293 Name : "read_multiple_files" ,
294+ Category : "filesystem" ,
284295 Description : "Read the contents of multiple files simultaneously." ,
285296 Parameters : tools .MustSchemaFor [ReadMultipleFilesArgs ](),
286297 // TODO(dga): depends on the json param
@@ -293,6 +304,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
293304 },
294305 {
295306 Name : "search_files" ,
307+ Category : "filesystem" ,
296308 Description : "Recursively search for files and directories matching a pattern. Prints the full paths of matching files and the total number of files found." ,
297309 Parameters : tools .MustSchemaFor [SearchFilesArgs ](),
298310 OutputSchema : tools .MustSchemaFor [string ](),
@@ -304,6 +316,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
304316 },
305317 {
306318 Name : "search_files_content" ,
319+ Category : "filesystem" ,
307320 Description : "Searches for text or regex patterns in the content of files matching a GLOB pattern." ,
308321 Parameters : tools .MustSchemaFor [SearchFilesContentArgs ](),
309322 OutputSchema : tools .MustSchemaFor [string ](),
@@ -315,6 +328,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
315328 },
316329 {
317330 Name : "write_file" ,
331+ Category : "filesystem" ,
318332 Description : "Create a new file or completely overwrite an existing file with new content." ,
319333 Parameters : tools .MustSchemaFor [WriteFileArgs ](),
320334 OutputSchema : tools .MustSchemaFor [string ](),
0 commit comments