Get file diff
devops_get_item_content_diffCompare two file versions and return only changed hunks with numbered lines, marking additions and removals for code review.
Instructions
Get textual diff between two versions of a file (changed hunks only). Lines are numbered; added lines are prefixed with '+', and removed with '-'. For full content of specific file, use item content tool with target 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>",
"base_version": "<base_version>",
"target_version": "<target_version>"
},
"name": "devops_get_item_content_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file to diff, e.g. src/foo.cs | |
| base_version | Yes | Base commit ID, e.g. lastMergeTargetCommit. | |
| repository_id | Yes | Repository name or ID. | |
| target_version | Yes | Target commit ID, e.g. lastMergeSourceCommit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |