list_repo_items
List files and folders at a path on any branch, commit, or tag. Choose recursion level to get flat or full directory contents.
Instructions
List files and folders at a path on any branch, commit, or tag.
Returns a list of dicts, each with keys: path, is_folder, git_object_type, object_id, commit_id, url.
Context (repository, project, org) is resolved from the cached RepositoryContext unless explicit params are provided.
Args: path: Directory path to list. Defaults to "/". ref: Branch name, commit SHA, or tag. None = default branch. recursion: "none", "oneLevel" (default), or "full". repository: Repository name (overrides context). project: Project name (overrides context). working_directory: Optional path for context resolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| ref | Yes | ||
| recursion | Yes | ||
| repository | Yes | ||
| project | Yes | ||
| working_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |