Discard task changes
discard_taskThrow away a worktree-isolated task's changes, canceling it if running. Use to reject a delegated agent's work before applying its diff.
Instructions
Throw away a worktree-isolated task's changes (cancels it if running).
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": {
"task_id": "<task_id>"
},
"name": "discard_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | task_id from start_task |