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.
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 |