herdr_worktree_remove
Remove a Git worktree checkout and close its workspace without deleting the branch. Optionally force removal even with uncommitted changes.
Instructions
WARNING: Destructive: deletes the worktree checkout and closes its workspace. Does NOT delete the git branch (use git branch -D separately).
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": {
"workspace_id": "<workspace_id>"
},
"name": "herdr_worktree_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force removal even if the worktree has uncommitted changes (default false). | |
| workspace_id | Yes | Workspace of the worktree to remove. |