Git Workspace Tools
git_workspaceManage Git workspace workflows: stash, rebase, cherry-pick, merge, bisect, tag, worktree, and submodule actions, with a stash_all shortcut for saving all changes.
Instructions
Workspace tool for stash/rebase/cherry-pick/merge/bisect/tag/worktree/submodule actions plus stash_all shortcut.
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_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| url | No | ||
| name | No | ||
| onto | No | ||
| path | No | ||
| sign | No | Sign the tag. Defaults to the server GIT_AUTO_SIGN_TAGS setting. | |
| index | No | ||
| paths | No | ||
| action | No | stash | |
| branch | No | ||
| target | No | ||
| bad_ref | No | ||
| command | No | ||
| message | No | ||
| good_ref | No | ||
| merge_log | No | ||
| recursive | No | ||
| 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. | |
| merge_refs | No | ||
| tag_action | No | ||
| merge_no_ff | No | ||
| rebase_onto | No | ||
| signing_key | No | ||
| command_args | No | ||
| merge_action | No | ||
| merge_squash | No | ||
| stash_action | No | ||
| bisect_action | No | ||
| merge_ff_only | No | ||
| rebase_action | No | ||
| rebase_branch | No | ||
| rebase_merges | No | ||
| conflict_style | No | ||
| merge_strategy | No | ||
| submodule_jobs | No | ||
| worktree_force | No | ||
| merge_no_commit | No | ||
| rebase_upstream | No | ||
| response_format | No | Output format for the response. | markdown |
| submodule_depth | No | ||
| worktree_action | No | ||
| worktree_expire | No | ||
| cherry_pick_refs | No | ||
| submodule_action | No | ||
| submodule_remote | No | ||
| include_untracked | No | ||
| rebase_autosquash | No | ||
| worktree_detached | No | ||
| cherry_pick_action | No | ||
| rebase_interactive | No | ||
| cherry_pick_mainline | No | ||
| cherry_pick_strategy | No | ||
| worktree_lock_reason | No | ||
| cherry_pick_no_commit | No | ||
| merge_strategy_options | No | ||
| cherry_pick_record_origin | No | ||
| cherry_pick_strategy_options | No |