remove_worktree
Clean up orphaned git worktrees safely: commit leftover changes first and preserve unmerged branches to avoid data loss.
Instructions
Remove an orphaned checkout listed by list_worktrees (leftovers are committed first; the branch stays if unmerged).
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": {
"terminal_id": "<terminal_id>"
},
"name": "remove_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terminal_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||