Pr
pr
GitPRTool — create GitHub pull requests via gh CLI.
GitPRTool
Bases: AXMTool
Create a GitHub pull request with optional auto-merge.
Registered as git_pr via axm.tools entry point.
Source code in packages/axm-git/src/axm_git/tools/pr.py
name
property
Tool name used for MCP registration.
execute(*, title, body=None, base='main', auto_merge=True, path='.', **kwargs)
Create a GitHub pull request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
PR title (required). |
required |
body
|
str | None
|
PR body/description. |
None
|
base
|
str
|
Base branch (default |
'main'
|
auto_merge
|
bool
|
Enable auto-merge with squash (default |
True
|
path
|
str
|
Repository path. |
'.'
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with |