gh_pr_create
Creates a pull request by passing the Markdown body via a temp file, avoiding shell quoting problems. Specify base, title, body, and optional repo or draft.
Instructions
Create a pull request. Body is passed via a temp file (no shell quoting).
The current branch must already be pushed to the remote; this wraps
gh pr create only, not the push.
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": {
"base": "<base>",
"title": "<title>",
"body": "<body>"
},
"name": "gh_pr_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | base branch (e.g. ``master``). | |
| body | Yes | PR body Markdown. | |
| repo | No | optional ``owner/repo``; omit to use the current repo. | |
| draft | No | create as draft when True. | |
| title | Yes | PR title. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||