List directory
list_directoryList files and folders under a specified path in a Git repository, returning metadata like object ID, content type, and the latest commit that touched each entry.
Instructions
List files and folders under a directory path in a Git repository (one level or full recursion) with metadata: object ids, content type, and the latest commit that touched each entry.
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": {
"repository": "<repository>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag name (alternative to branch). | |
| path | No | Directory path, e.g. '/src'. Defaults to the repository root. | / |
| branch | No | Branch name (e.g. 'develop'). Defaults to the repository's default branch. | |
| commit | No | Commit SHA (alternative to branch). | |
| project | No | Team project name or id that owns the repository. Overrides TFS_DEFAULT_PROJECT. | |
| recursion | No | oneLevel | |
| repository | Yes | Repository name or id. | |
| includeMetadata | No | Include content metadata and latest change per entry (slower on large trees). |