list_files
List files in a directory inside an E2B sandbox. Provide a path or use the default to view contents; optionally target a specific sandbox by ID.
Instructions
List files in a directory in the sandbox environment
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path to list (defaults to current directory) | . |
| sandbox_id | No | Optional sandbox ID to use specific sandbox |