cleanup_worktree
Remove an inactive, clean managed worktree and retain its branch for review, freeing workspace without discarding branch history.
Instructions
Remove an inactive, clean managed worktree, retaining its branch for review
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": {
"agent": "<agent>"
},
"name": "cleanup_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes |