Git info
git_infoSummarizes a Git repository's branch, HEAD, uncommitted changes, remotes, and recent commits so agents can inspect repository state before acting.
Instructions
Summarise a git repo: branch, HEAD, uncommitted changes, remotes, recent commits.
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_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Any path inside the repository. | . |
| max_commits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head | Yes | HEAD commit SHA, or null in an empty repository. | |
| branch | Yes | Current branch, or null on a detached HEAD. | |
| remotes | Yes | ||
| is_dirty | Yes | ||
| repo_root | Yes | Repository root, relative to the workspace. | |
| changed_files | Yes | Porcelain status lines, e.g. ' M src/app.py'. | |
| recent_commits | Yes |