Get file content
devops_repository_item_contentFetch raw file content from an Azure DevOps repository path at a specific commit, enabling AI assistants to inspect exact source files for reviews or troubleshooting.
Instructions
Get raw file content for a repository path at a specific version.
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": {
"repository_id": "<repository_id>",
"path": "<path>",
"version": "<version>"
},
"name": "devops_repository_item_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the item, e.g. src/foo.cs | |
| version | Yes | Commit ID to fetch the file from. | |
| repository_id | Yes | Repository name or ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |