compare_versions
Diffs a file or folder between two Diablo II patch branches to show what code changed across versions, with a per-file summary and whitespace-ignoring changes.
Instructions
What changed in the code between two patches: a git diff of a file or folder between version branches, a per-file summary first, then the changes, ignoring whitespace and #line directives. Only 'd2hausos' (seperaGG's byte-matching decompilation) has versions: 'v1.00', 'v1.01', 'v1.02', 'v1.03', one branch each. path: repo-relative, e.g. 'D2Game/AI' or 'D2Common/Skills.cpp' (find it with search_code first; '.' is the whole repo, usually too big). The diff is capped at 60 KB: when it's truncated, narrow the path to a subfolder or file from the summary. Use it for "what changed between 1.00 and 1.01 in X". It's code reading only: say which two versions you compared, link the compare page or the branches it gives, describe what the code does differently, and don't claim gameplay effects the diff doesn't show. Cite short snippets, never whole files.
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": {
"source": "<source>",
"path": "<path>",
"from_version": "<from_version>",
"to_version": "<to_version>"
},
"name": "compare_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes | ||
| to_version | Yes | ||
| from_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |