list_files
List a directory in the sandbox workspace as structured entries (name, size, whether it is a directory) — use it to find your way around before read_file, rather than parsing ls output from run_command. Paths are relative to the workspace root; omit path for the root. An absolute path outside the workspace is refused.
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": {
"sandbox_id": "<sandbox_id>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | directory relative to the workspace root (default the root) | |
| sandbox_id | Yes | sandbox id, e.g. sb_ab12cd |