github_action
Perform GitHub REST API actions: search repositories and code, create branches and commits, open, comment on, or merge pull requests, and read workflow checks.
Instructions
Interact with the GitHub REST API: search/read repos, create branches and commits, open PRs, comment, merge, and read workflow checks.
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": {
"action": "<action>"
},
"name": "github_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Commit SHA, branch, or tag for list_checks. | |
| base | No | Pull request base branch. | |
| body | No | Issue, pull request, or comment body text. | |
| head | No | Pull request head branch. | |
| page | No | Page number. | |
| repo | No | Repository name. | |
| draft | No | Create a draft pull request. | |
| files | No | Files for push_files: { path, content, encoding? } entries. | |
| force | No | Force-update the branch ref during push_files. Defaults to false. | |
| owner | No | Repository owner login. | |
| query | No | Search query string (for search_repos and search_code). | |
| state | No | Filter by state: open, closed, all. | |
| title | No | Issue or pull request title. | |
| action | Yes | Action: search_repos, get_repo, list_issues, create_issue, list_prs, get_user, list_gists, search_code, create_branch, push_files, create_pull_request, comment_issue_or_pr, merge_pull_request, close_pull_request, list_checks. | |
| branch | No | Target branch for branch creation, file pushes, pull requests, or checks. | |
| labels | No | Comma-separated label names to filter by. | |
| number | No | Issue or pull request number fallback. | |
| status | No | Filter list_checks by status. | |
| api_key | No | GitHub token fallback. Saved UnClick GitHub login is preferred when omitted. | |
| comment | No | Comment body fallback for comment_issue_or_pr. | |
| message | No | Commit message for push_files. | |
| per_page | No | Results per page (max 100). | |
| username | No | GitHub username (for get_user and list_gists). | |
| deletions | No | File paths to delete during push_files. | |
| check_name | No | Filter list_checks by check name. | |
| new_branch | No | New branch name for create_branch. | |
| base_branch | No | Base branch for create_branch, push_files branch creation, or pull requests. | |
| pull_number | No | Pull request number for comment_issue_or_pr or merge_pull_request. | |
| access_token | No | GitHub personal access token (PAT). Saved UnClick GitHub login is used when this is omitted. | |
| commit_title | No | Merge commit title. | |
| issue_number | No | Issue number for comment_issue_or_pr. | |
| merge_method | No | Merge method: merge, squash, or rebase. Defaults to squash. | |
| commit_message | No | Merge commit message. | |
| expected_head_sha | No | Optional safety check: fail if the branch head has moved. | |
| maintainer_can_modify | No | Allow maintainers to modify the pull request branch. Defaults to true. |