agent_files
List files in an agent sandbox and optionally download them to a local output directory, supporting recursive folder search and a configurable file limit.
Instructions
List files in an agent sandbox and optionally download them to OUTPUT_DIR/agent/<environment_id>/.
path: folder or file inside the workspace ("" = root). recursive: include subfolders. download: save the listed files locally (at most max_files, <=200).
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": {
"environment_id": "<environment_id>"
},
"name": "agent_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| download | No | ||
| max_files | No | ||
| recursive | No | ||
| environment_id | Yes |