List a directory in a sandbox
list_filesLists files and folders in a sandbox directory one level deep, sorted by name, with symlinks shown as links and not followed. Use it to inspect directory contents; defaults to /home/user.
Instructions
List a directory in a sandbox. One level, sorted by name. A symlink is listed as a symlink, not followed. Defaults to /home/user. Needs file.read.
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": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | /home/user | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |