Skip to main content

Function: createFilesystemTools()

createFilesystemTools(options): object

Defined in: filesystem.ts:113

The five filesystem tools bound to root (and, with elevateRoot, to an approval-gated second root).

Parameters​

options​

FilesystemToolsOptions

Returns​

object

edit_file​

edit_file: ZodToolDefinition<ZodObject<{ new_string: ZodString; old_string: ZodString; outside_workspace: ZodOptional<ZodBoolean>; path: ZodString; replace_all: ZodOptional<ZodBoolean>; }, $strip>, EditFileResult>

file_info​

file_info: ZodToolDefinition<ZodObject<{ outside_workspace: ZodOptional<ZodBoolean>; path: ZodString; }, $strip>, FileInfoResult>

list_directory​

list_directory: ZodToolDefinition<ZodObject<{ includeHidden: ZodOptional<ZodBoolean>; outside_workspace: ZodOptional<ZodBoolean>; path: ZodString; recursive: ZodOptional<ZodBoolean>; }, $strip>, ListDirectoryResult>

read_file​

read_file: ZodToolDefinition<ZodObject<{ encoding: ZodOptional<ZodEnum<{ base64: "base64"; hex: "hex"; utf-8: "utf-8"; utf8: "utf8"; }>>; outside_workspace: ZodOptional<ZodBoolean>; path: ZodString; }, $strip>, ReadFileResult>

write_file​

write_file: ZodToolDefinition<ZodObject<{ content: ZodString; createDirs: ZodOptional<ZodBoolean>; encoding: ZodOptional<ZodEnum<{ base64: "base64"; hex: "hex"; utf-8: "utf-8"; utf8: "utf8"; }>>; outside_workspace: ZodOptional<ZodBoolean>; path: ZodString; }, $strip>, WriteFileResult>