Batch rollback
batch_rollback
BatchRollbackTool — restore project state to a checkpoint.
Registered as batch_rollback via the axm.tools entry point.
BatchRollbackTool
Restore project state to a previous checkpoint.
Registered as batch_rollback via axm.tools entry point.
Source code in packages/axm-edit/src/axm_edit/tools/batch_rollback.py
name
property
Tool name used for MCP registration.
execute(**kwargs)
Rollback to a checkpoint created by batch_edit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
object
|
Keyword arguments. path: Project root directory. checkpoint: The snapshot payload from batch_edit's response. |
{}
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult indicating whether the rollback succeeded. |
Source code in packages/axm-edit/src/axm_edit/tools/batch_rollback.py
render_text(*, success, checkpoint, files, error)
Render a compact, LLM-facing view of a rollback outcome.
The header carries the global status — ✓ when the working tree was
restored, ✗ otherwise so a failed/no-op rollback is impossible to
miss — alongside the restored-file count. (The checkpoint is an opaque
JSON snapshot payload, not a short hash, so it is not summarised in the
header.) Every restored file is then listed verbatim, one per line. On
failure the header surfaces the error, so nothing carried in data
(the restored flag) or the error is lost: only JSON structure is
dropped.