arcwright_rollback
Undo a failed task by restoring every file it changed to its pre-run state from Arcwright checkpoints in a git repo; files edited afterward stay untouched and are listed unless force is true.
Instructions
Undo a task: put every file it changed back as it was before its first run, from Arcwright's checkpoints (needs the project to be in a git repository). A file edited since the task finished is left as it is and listed, unless force is true. Use it when a task went wrong and starting over is simpler than fixing it; tell the user what was put back.
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": {
"task_id": "<task_id>"
},
"name": "arcwright_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Also put back files edited since the task finished (their later edits are lost). Only when the user agrees. | |
| task_id | Yes | ||
| project_dir | No | Absolute path of the project folder the agents work in. Defaults to the current working directory. |