abort_worktree
Cancel a worktree without merging when a feature is abandoned. Discard changes and avoid unneeded merges to keep the workflow clean.
Instructions
Aborts worktree without merging. Use when feature is cancelled.
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": {
"worktree_path": "<worktree_path>"
},
"name": "abort_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for abort (for logging) | |
| worktree_path | Yes | Path to worktree |