LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexcreateFilesystemMiddleware
Function●Since v1.4

createFilesystemMiddleware

Create filesystem middleware with all tools and features.

Copy
createFilesystemMiddleware(
  options: FilesystemMiddlewareOptions = {}
): AgentMiddleware<StateSchema<__type>, undefined, unknown, DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string, "ls"> | DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string, "read_file"> | DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string | ToolMessage<MessageStructure<MessageToolSet>> | Command<unknown, __type, string>, "write_file"> | DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string | ToolMessage<MessageStructure<MessageToolSet>> | Command<unknown, __type, string>, "edit_file"> | DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string, "glob"> | DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string, "grep"> | DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string, "execute">[]>

Used in Docs

  • Prebuilt middleware

Parameters

NameTypeDescription
optionsFilesystemMiddlewareOptions
Default:{}
View source on GitHub