git_snapshot
Reads branch, HEAD, upstream ahead/behind, porcelain status and recent commits from a Git repository to provide a quick snapshot without running repository hooks.
Instructions
Read branch, HEAD, upstream ahead/behind, porcelain v2 status and last 10 commits. No approval window; runs in client Host even in Broker mode. Fixed Git never runs repository hooks/filters or configured programs. Maximum 3 processes, 15 seconds each, 64 KiB per output; errors are sanitized, never auto-retry.
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": {
"path": "<path>"
},
"name": "git_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute repository directory within configured read roots, including read: folders; top must also be allowed. | |
| include_untracked | No | Return untracked names as well as their count; default false returns only the count. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||