diff
Diff npm packages: compare two package versions, or a local package against its published registry version. Specify versions via range or array, or provide local path.
Instructions
Show diff between package versions or between local and registry
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to local package (compares local vs registry) | |
| specs | No | Two package specs to compare (e.g. ['pkg@1.0.0', 'pkg@2.0.0']) | |
| package | No | Package spec for comparison (e.g. pkg@1.0.0..pkg@2.0.0) | |
| diffNameOnly | No | Only show file names that changed |