get_repo_file_content
Fetch the content of a single file from any branch, commit, or tag in an Azure DevOps repository. Returns path, content, encoding, and size.
Instructions
Fetch a single file's content from any branch, commit, or tag.
Returns a dict with keys: path, content, encoding, size_bytes.
Context (repository, project, org) is resolved from the cached RepositoryContext unless explicit params are provided.
Args: path: File path within the repository. ref: Branch name, commit SHA, or tag. None = default branch. repository: Repository name (overrides context). project: Project name (overrides context). working_directory: Optional path for context resolution.
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": {
"path": "<path>",
"ref": "<ref>",
"repository": "<repository>",
"project": "<project>",
"working_directory": "<working_directory>"
},
"name": "get_repo_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| ref | Yes | ||
| repository | Yes | ||
| project | Yes | ||
| working_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |