Remove managed Git worktree
git_worktree_removeRemove a clean Git worktree and unregister it from management. Dirty worktrees are refused, while the branch remains intact.
Instructions
Remove a clean runner-managed worktree and unregister it. Dirty worktrees are refused; the branch is retained.
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": {
"project": "<project>"
},
"name": "git_worktree_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| project | Yes | ||
| removed | Yes | ||
| sourceProject | Yes | ||
| branchRetained | Yes |