merge_worktree
Merge accepted subgoal changes from an isolated git worktree back into the main workspace, updating status to merged. On failure, preserves the worktree for manual inspection.
Instructions
v1.0.0: Merge an isolated git worktree's changes back into the main workspace. Use after a subgoal task (created with isolate_worktree=true) is accepted. Updates worktree_status.json to status='merged'. Merge failures do NOT delete the worktree (preserved for manual inspection).
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": {
"worktree_id": "<worktree_id>",
"repo_path": "<repo_path>"
},
"name": "merge_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Main workspace repository path inside workspaceRoot. | |
| worktree_id | Yes | Worktree ID (wt_...) from create_subgoal_task. |