list_files
Explore repository contents by listing files and directories with recursive depth control, providing a structured overview with file sizes.
Instructions
List files and directories in the repository.
Args: directory: Relative subfolder inside the repository (empty string for root). recursive: Whether to list recursively through child directories (default: True). max_depth: Maximum directory recursion depth (default: 10).
Returns: JSON string containing total_entries and a structured list of files with sizes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | ||
| max_depth | No | ||
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |