Git Log For PR
git_log_for_prList commits on the current branch since a base branch to generate pull request titles and descriptions.
Instructions
List commits on the current branch since the base branch, for writing a PR title/body (the aipr workflow).
If base is omitted, it is auto-detected (origin/HEAD, else main/master). Read-only.
Args:
base (string, optional): base branch/ref to compare against
repo_path (string, optional): repository path (default: server cwd)
Returns JSON: { base, count, commits: [{ sha, subject, body }] }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_log_for_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch/ref | |
| repo_path | No | Path to the git repository. Defaults to the server's working directory. |