Git worktree remove
git_worktree_removeRemove a Git worktree created by git_worktree_create, specifying the worktree path and branch, with an optional force flag.
Instructions
Remove an agent worktree created by git_worktree_create.
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": {
"path": "<path>",
"branch": "<branch>"
},
"name": "git_worktree_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| force | No | ||
| branch | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||