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.
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_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| repo_path | Yes | ||
| resource_path | No | ||
| cache_strategy | No | shared |