Get file content
get_file_contentRetrieve file contents from an Azure DevOps repository. Specify the file path and optionally the branch to get file content directly from the repository.
Instructions
Read the content of a file from a repository at an optional branch.
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": {
"repositoryId": "<repositoryId>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Azure DevOps project name or id. Defaults to AZDO_PROJECT if set. | |
| repositoryId | Yes | Repository id or name. | |
| path | Yes | File path within the repo, e.g. /src/index.ts | |
| branch | No | Branch name (without refs/heads/). Defaults to the repo default branch. |