get_source_repo_map
Retrieve a semantic analysis map of a repository's source code, highlighting file hierarchy, functions, classes, and their relationships for comprehensive code understanding.
Instructions
Retrieve a semantic analysis map of the repository's source code structure, including file hierarchy, functions, classes, and their relationships. Repository must be previously cloned via clone_repo.
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:
Status Types:
"threshold_exceeded": Indicates analysis scope exceeds processing limits
"building": Analysis in progress
"waiting": Waiting for prerequisite operation
"success": Analysis complete
"error": Operation failed
Resource Management:
Repository size impacts processing time and token usage
'max_tokens' parameter provides approximate control of response size Note: Actual token count may vary slightly above or below specified limit
File count threshold exists to prevent overload
Processing time scales with both file count and max_tokens Important: Clients should adjust their timeout values proportionally when:
Analyzing larger numbers of files
Specifying higher max_tokens values
Working with complex repositories
Scope Control Options:
'files': Analyze specific files. If only this is provided, the entire repository will be searched for matching file names.
'directories': Analyze all source files within specific directories.
If BOTH 'files' and 'directories' are provided, the tool will perform an INTERSECTION, analyzing only the files named in 'files' that are also located within the specified 'directories'.
Response Metadata:
Contains processing statistics and limitation details
Provides override_guidance when thresholds are exceeded
Reports excluded files and completion status
NOTE: This tool supports both broad and focused analysis strategies. Response handling can be adapted based on specific use case requirements and user preferences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| branch | No | ||
| repo_path | Yes | ||
| max_tokens | No | ||
| directories | No | ||
| cache_strategy | No | shared |