Git Show
git_showInspect commits, trees, blobs, and tags to view metadata, file contents, and diffs for detailed git repository analysis.
Instructions
Show details of a git object (commit, tree, blob, or tag). Displays commit information and the diff of changes introduced.
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": {
"object": "<object>"
},
"name": "git_show"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Git repository. Defaults to session working directory set via git_set_working_dir. | . |
| object | Yes | Git object to show (commit hash, branch, tag, tree, or blob). | |
| format | No | Output format for the git object. | |
| stat | No | Show diffstat instead of full diff. | |
| filePath | No | View specific file at a given commit reference. When provided, shows the file content from the specified object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| object | Yes | Object identifier. | |
| type | Yes | Type of git object shown. | |
| content | Yes | Formatted output showing the object details. | |
| metadata | No | Additional metadata about the object. |