approve_and_merge
Approve reviewed worktree changes and merge them into the repository, or export a patch, then clean up the temporary Git worktree.
Instructions
Approve the reviewed worktree changes, merge them cleanly into the repository (or export a patch), and clean up the temporary Git 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": {
"taskId": "<taskId>"
},
"name": "approve_and_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Task ID to approve and merge. | |
| commitMessage | No | Custom Git commit message for the merged change. | |
| mergeStrategy | No | Merge mode: "squash" (default, clean single commit), "merge" (--no-ff), or "patch-only" (export .patch without touching main branch). | |
| forceWithoutGatePass | No | Explicitly allow merging even if automated gate checks failed (default: false). |