get_repo_file_content
Retrieve complete file content or directory listings from GitHub, Azure DevOps, or local repositories to access code for analysis.
Instructions
Retrieve file contents or directory listings from a repository. For files, returns the complete file content. For directories, returns a non-recursive listing of immediate files and subdirectories.
PARAMETERS:
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'
resource_path: (Optional) Path within the repository. Defaults to root directory if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| repo_path | Yes | ||
| resource_path | No | ||
| cache_strategy | No | shared |