diff
Compare a built NixOS closure against the running system or a specified closure to list package additions, removals, version changes, and closure size; use the changeset to preview or apply a switch.
Instructions
Build the new closure (or reuse an existing store_path from build()) and diff it against the running system or an explicit against closure (nvd, falling back to nix store diff-closures): package additions, removals, version changes as structured packages plus closure_size; the raw diff text only when it does not parse. Include the changeset in the reply and switch unless the user asked only to preview or check. For hosts requiring coordinated fleet deployment, use the repository's deployment orchestrator.
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 |
|---|---|---|---|
| mode | No | nixos | |
| against | No | ||
| flake_uri | No | ||
| store_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||