Git Status Tools
git_statusInspect Git working tree status and compare staged, unstaged, or branch-reference changes to review edits before committing.
Instructions
Status and diff tool. Use action=status|diff|diff_main to inspect working tree and branch deltas.
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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | unstaged | |
| action | No | status | |
| to_ref | No | ||
| filtered | No | ||
| from_ref | 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. | |
| base_branch | No | main | |
| response_format | No | Output format for the response. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| status | No | ||
| summary | No | ||
| merge_base | No | ||
| base_branch | No |