get_commit
Retrieve a single commit from a GitHub repository by providing owner, repository name, and commit SHA, branch, or tag.
Instructions
Get a single commit in a GitHub repository. Docs: https://docs.github.com/en/rest/commits/commits#get-a-commit
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": {
"owner": "<owner>",
"repo": "<repo>",
"ref": "<ref>"
},
"name": "get_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Commit SHA, branch, or tag | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) |