sandbox_file_list
List files and directories in a given sandbox path to inspect its contents. Specify the sandbox ID and optional directory path; defaults to /home/user. Enables exploring file structures within E2B sandboxes.
Instructions
List files and directories in a sandbox path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sandboxId": "<sandboxId>"
},
"name": "sandbox_file_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | The sandbox ID. | |
| path | No | Directory path to list. Defaults to /home/user. |