List directory
list_filesList one directory in the sandbox (default /root): name, whether it is a directory, and size in bytes. Use it to see what exists before reading or writing files. It is not recursive – to search a tree or filter by pattern, run find or ls -R as a shell command.
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 | |
| sandbox_id | No | Sandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Listed directory. | |
| entries | Yes | Directory entries. | |
| sandbox_id | Yes | Sandbox ID. |