pi_merge
Commit a finished worker's worktree changes and merge its branch into the parent repo. Refuses if the worker runs, the main tree has changes, or conflicts occur.
Instructions
Commit a finished worker's worktree changes and merge its branch (--no-ff) into the repo it was spawned from. Refuses while the worker runs or the main tree has tracked changes; aborts and reports on conflict.
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": {
"id": "<id>"
},
"name": "pi_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Worker id from pi_spawn | |
| message | No | Merge commit message |