finish_task
Finalize an isolated task by merging approved work into the base branch, keeping the branch, or discarding the worktree and branch; confirm before merge.
Instructions
merge: squash into the base branch (approved only; user's tree must be clean). keep: leave the branch. discard: delete worktree and branch. Ask the user before merge.
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>",
"action": "<action>"
},
"name": "finish_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |