github_open_pr
Open a GitHub pull request with approval-based access control, validating repository allowlist and preventing auto-close keywords.
Instructions
Open a pull request on GitHub.
Requires a valid ``approval_id``, which is consumed prior to performing
the API call. Raises ``PermissionError`` if the approval ID is missing or
invalid. Delegates to the underlying GitHub API implementation.
Validates that:
1. The upstream repository is in the allowlist
2. The fork owner matches the configured GitHub username
3. The PR body does not contain auto-close keywords (closes, fixes, resolves)
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": {
"upstream_repo_slug": "<upstream_repo_slug>",
"base_branch": "<base_branch>",
"fork_repo_slug": "<fork_repo_slug>",
"head_branch": "<head_branch>",
"title": "<title>",
"body": "<body>"
},
"name": "github_open_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| draft | No | ||
| title | Yes | ||
| approval_id | No | ||
| base_branch | Yes | ||
| head_branch | Yes | ||
| fork_repo_slug | Yes | ||
| upstream_repo_slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||