Skip to content
masterclass Buddy

Deep Agents · Function

ls

ls lists all files in an absolute directory and returns their metadata in an LsResult. It is a built-in Deep Agents filesystem operation.

Last updated

Since
v0.7

Syntax

ls(self, path: str) -> LsResult

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • LsResult
  • BaseSandbox
  • BackendProtocol
  • read_file
  • glob
  • grep
  • FilesystemMiddleware

Source: ls | deepagents | LangChain Reference. Checked 2026-11-03.