get_file_content
Retrieve the contents of a file or directory from an Azure DevOps repository, optionally at a specific branch, tag, or commit, to inspect or use repository data.
Instructions
Get content of a file or directory from a repository
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 |
|---|---|---|---|
| path | Yes | Path to the file or folder | / |
| version | No | The version (branch, tag, or commit) to get content from | |
| projectId | No | The ID or name of the project (Default: no default project) | |
| versionType | No | Type of version specified (branch, commit, or tag) | |
| repositoryId | Yes | The ID or name of the repository | |
| organizationId | No | The ID or name of the organization (Default: example-org) |