List a directory
file_listLists directory entries inside a sandbox, returning each item's type and size so you can inspect files and folders. Provide a path and optional sandbox ID to browse workspace contents.
Instructions
List the entries of a directory inside the sandbox with type and size.
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": {
"path": "<path>"
},
"name": "file_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path, e.g. /home/user. | |
| sandbox_id | No | Sandbox ID, e.g. sbx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (returned by sandbox_create). |