Git Workflow Orchestrator
git_workflowRun and manage named multi-step Git workflows with resumable start, status, continue, abort, and list controls for snapshot, replay, branch surgery, and publish tasks.
Instructions
Run named multi-step Git workflows with resumable lifecycle controls. Use action=start|status|continue|abort|list with workflow families such as snapshot, replay, branch_surgery, and publish.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Replay mode for replay workflow. | cherry-pick |
| action | No | Lifecycle action for git_workflow execution and state management. | start |
| remote | No | Remote name for publish-related steps (default: origin). | |
| publish | No | Deprecated alias for auto_publish; retained for backward compatibility. | |
| reset_to | No | Optional hard-reset target in replay/branch_surgery workflows. | |
| workflow | No | Named workflow family for multi-step Git orchestration. | |
| log_count | No | Commit count for snapshot log output. | |
| repo_path | No | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. | |
| three_way | No | Use --3way when applying patch series via git am. | |
| base_branch | No | Base branch for snapshot merge-base checks (default: main). | |
| fetch_first | No | Fetch before publish workflow steps. | |
| patch_files | No | Patch/mailbox file list for replay mode=am. | |
| rebase_onto | No | Optional rebase target before publish push step. | |
| auto_publish | No | Automatically publish after replay/branch_surgery sequence. | |
| set_upstream | No | Use --set-upstream for publish push steps. | |
| backup_branch | No | Backup branch name for branch_surgery workflow. | |
| target_branch | No | Target branch for replay/branch_surgery/publish workflows. | |
| source_commits | No | Commit list for replay and branch_surgery flows. | |
| response_format | No | Output format for the response. | markdown |
| force_with_lease | No | Use --force-with-lease for publish push steps. | |
| confirm_hard_reset | No | Required true when reset_to is provided because hard reset is destructive. |