git_show
Read a commit stat or patch, or a specific file at a revision, while skipping protected file patches and returning paged output with sanitized errors.
Instructions
Read a commit stat/patch or rev:file, omitting protected file patches. No approval window; client Host in both modes. Fixed Git never runs repository hooks/filters or configured programs. Maximum 3 processes, 15 seconds each; content pages <=64 KiB with next_offset. Sanitized errors; 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>",
"rev": "<rev>"
},
"name": "git_show"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | Yes | Revision: 1..200 ASCII letters/digits or ._/@^~-; no leading -, .. or colon. | |
| file | No | Optional literal relative file, maximum 4096 characters, inside repository and read roots; protected names refused. | |
| path | Yes | Absolute repository directory within configured read roots, including read: folders; top must also be allowed. | |
| offset | No | Byte cursor 0..268435456 from next_offset; 64 KiB pages. Repository changes between calls can change pages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||