create_pr
Create a GitHub pull request from the current worktree, with auto-generated title and body based on commits. Requires GitHub authentication.
Instructions
Create a GitHub pull request from the current worktree. Auto-generates title and body from commits if not provided. Requires GitHub authentication (GITHUB_TOKEN env var or gh CLI).
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": {
"worktreePath": "<worktreePath>"
},
"name": "create_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional: PR body (auto-generated from commits if not provided) | |
| draft | No | Optional: Create as draft PR (default: false) | |
| title | No | Optional: PR title (auto-generated from commits if not provided) | |
| worktreePath | Yes | Path to the worktree |