codemerge_finish
Release the merge session lock and finalize the merge result. Call after a merge succeeds or fails; pass success=false to keep the session active for retry.
Instructions
Finish a merge session and release the lock.
Call this after codemerge_merge() returned proceed=true; the session must
be in 'merging' state or this refuses in BOTH directions of success.
Args:
session_id: The merge session ID
success: True if the merge succeeded (status→done). False if the git merge/cherry-pick failed (status→active): the lock is released and the session stays alive so it can try again. False does NOT close the session — use codemerge_abandon for that.
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": {
"session_id": "<session_id>"
},
"name": "codemerge_finish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||