e2b_list_dir
List files and folders inside an E2B sandbox directory, with optional recursion depth, to inspect its contents.
Instructions
List the contents of a directory in a sandbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or home-relative directory path | |
| port | No | Optional envd port; defaults to 49983 | |
| depth | No | How many levels deep to recurse | |
| username | No | ||
| sandboxId | Yes | E2B sandbox ID | |
| accessToken | No | Optional sandbox access token |