get_repo_structure
Retrieve a repository's directory structure and analyzable file counts to identify main code locations, guiding targeted analysis decisions.
Instructions
Retrieve directory structure and analyzable file counts for a repository to guide analysis decisions.
PARAMETER:
repo_path: Repository identifier (GitHub URL, Azure DevOps URL, or local path) Examples: 'https://github.com/user/repo', 'https://dev.azure.com/org/project/_git/repo', '/home/user/project' The format will be normalized automatically
RESPONSE CHARACTERISTICS:
Directory Information:
Lists directories containing analyzable source code
Reports number of analyzable files per directory
Shows directory hierarchy
Indicates file extensions present in each location
Usage:
Requires repository to be previously cloned via clone_repo
Helps identify main code directories
Supports planning targeted analysis
Shows where analyzable code is located
NOTE: Use this tool to understand repository structure and choose which directories to analyze in detail.
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": {
"repo_path": "<repo_path>"
},
"name": "get_repo_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| repo_path | Yes | ||
| directories | No | ||
| include_files | No | ||
| cache_strategy | No | shared |