get_commits
查看 GitHub 仓库某个分支的提交历史(sha、提交信息、作者、日期)。当用户想了解仓库最近改动、开发活跃度或某次提交内容时使用。branch 缺省自动用默认分支,按时间倒序 25 条/页。
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>"
},
"name": "get_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,从 1 开始,默认 1 | |
| repo | Yes | 仓库名 | |
| owner | Yes | 仓库属主 | |
| branch | No | 分支名,缺省用默认分支 |