rollback_feature
Restore files changed by a feature worker to their pre-worker state using Git snapshot branches, optionally targeting only specific files.
Instructions
Roll back files changed by a feature worker to their pre-worker state using git. Each worker creates a snapshot branch before starting that can be used for rollback.
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": {
"projectDir": "<projectDir>",
"featureId": "<featureId>"
},
"name": "rollback_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Specific files to rollback. If not provided, all files changed by the worker will be rolled back. | |
| featureId | Yes | ID of the feature to rollback | |
| projectDir | Yes | Absolute path to the project directory |