agy_cleanup
Clean up a finished worker by forgetting it and removing its git worktree, with optional branch deletion and forced removal.
Instructions
Forget a finished worker and remove its worktree.
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_id": "<agent_id>"
},
"name": "agy_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| agent_id | Yes | Agent id. | |
| delete_branch | No | ||
| remove_worktree | No |