research_github
Search GitHub issues, pull requests, READMEs, and documentation to find code, bug fixes, API contracts, and discussions using natural-language queries. Returns Markdown passages for easy consumption.
Instructions
Search developer primary sources via the Firecrawl Developer Index: GitHub issues, merged pull requests and repository READMEs, PLUS curated documentation sites. Returns the matched passages in Markdown, so tables and code blocks survive. Use to find the CODE behind a paper, the issue where a bug was reported and fixed, an API contract, or the discussion behind an error message.
Args:
query: natural-language query (method, kernel, repo topic, error message).
k: number of results (1–25, default 8).
passages: matched passages per result (1–5, default 2).
types: restrict to any of exactly "doc", "issue", "pull_request", "readme".
NOTE the request spelling is pull_request (snake_case). The response's
repos[].types object uses camelCase (pullRequest) — echoing a key from
there back into this argument is refused, not silently ignored.
repos: "owner/repo" slugs. Scopes only the repository half of the index, so when
types is also given it must contain at least one of issue/pull_request/readme.
Falls back to the de-documented legacy /v2/search/research/github ONLY when the
Developer Index genuinely fails (transport, HTTP, malformed envelope, or every
requested type unavailable) — never on a legitimate empty result, and never when
types/repos were supplied, since the legacy endpoint accepts only query+k and
would silently answer a different question than the one asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | ||
| repos | No | ||
| types | No | ||
| passages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |