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.
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": {
"path": "<path>",
"ref": "<ref>",
"recursion": "<recursion>",
"repository": "<repository>",
"project": "<project>",
"working_directory": "<working_directory>"
},
"name": "list_repo_items"
}
}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 |