LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • 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

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsnodeSubAgentpermissions
Property●Since v1.10

permissions

Filesystem permission rules for this subagent.

When specified, these rules replace the parent agent's permissions for all tool calls made by this subagent. When omitted, the subagent inherits the parent agent's permissions.

Subagent permissions are a full replacement, not a merge.

Copy
permissions: FilesystemPermission[]

Example

Copy
// Parent denies /restricted/**; this subagent can read it.
const reader: SubAgent = {
  name: "reader",
  permissions: [
    { operations: ["read"], paths: ["/restricted/**"] },
  ],
};
View source on GitHub