GitHub
githubSearch and retrieve code, issues, pull requests, and repositories using structured owner/repo queries, with access to file contents, directory trees, and issue templates.
Instructions
Search and retrieve code, issues, pull requests, and repositories from GitHub.
Use this for GitHub lookups: search issues/PRs across repositories, search for repositories by topic/stars/language, search code, get issue or PR details with comments, fetch file content from a specific ref, get repo metadata with README, or inspect a repo's custom issue submission flow (forms, markdown templates, contact-link routing) before filing a new issue. GitHub URLs are also handled automatically by web_fetch_incisive — this tool is for structured queries by owner/repo/number.
Actions: search_issues, search_repos, search_code, issue, pull_request, file, repo, tree, issue_templates.
Query formats vary by action:
search_issues/search_code: GitHub search query with qualifiers (repo:, is:, label:, language:, path:)
search_repos: GitHub search query with qualifiers (topic:, stars:, language:, forks:, license:)
issue/pull_request: "owner/repo#number" (e.g. "pallets/flask#5618")
file/tree: "owner/repo/path" (e.g. "pallets/flask/src/flask/app.py") — use ref= for branch/tag
repo: "owner/repo" (e.g. "pallets/flask")
issue_templates: "owner/repo" (e.g. "pallets/flask") — call before filing an issue if the repo action's frontmatter hints at custom submission flow
Authentication: Set GITHUB_TOKEN env var or create ~/.config/parkour/github_token for 5000 req/hr (vs 60/hr unauthenticated). No special scopes needed for public repos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref (branch, tag, or commit SHA) for file/tree actions. Defaults to the repo's default branch. | |
| page | No | Page number for pagination (1-indexed). | |
| limit | No | Maximum results to return (default 10, max 100). | |
| query | Yes | For search_issues/search_repos/search_code: search query with optional GitHub qualifiers. For issue/pull_request: 'owner/repo#number' (e.g. 'facebook/react#1234'). For file/tree: 'owner/repo/path' (e.g. 'facebook/react/packages/react/src/React.js'). For repo and issue_templates: 'owner/repo' (e.g. 'facebook/react'). | |
| action | Yes | The operation to perform. search_issues: search issues/PRs by query (supports GitHub qualifiers like repo:, is:, label:). search_repos: search repositories by query (supports qualifiers like topic:, stars:, language:, forks:). search_code: search code across GitHub (supports qualifiers like repo:, language:, path:). issue: get issue details + comments by owner/repo#number. pull_request: get PR details + review comments + diff stat by owner/repo#number. file: get file content from a repo (use ref= for branch/tag). repo: get repo metadata + README. tree: get directory listing. issue_templates: list issue forms, markdown templates, and contact-link routing for a repository — use before filing a new issue. |