generations
List recent NixOS or Home Manager system states and roll back to a previous or specified state to recover from a broken configuration.
Instructions
action='list': enumerate recent system/HM generations (default limit=20, always keeping current; pass limit=None for all) with dates and current marker. NixOS entries include path when the profile link exists. action='rollback': revert to the previous generation, or pass generation= to activate that generation. Bare rollback is previous-only. Pass mode='home-manager' for HM generations.
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": "generations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | nixos | |
| limit | No | ||
| action | No | list | |
| generation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||