search_github
Search GitHub for public repositories matching a query, returning name, owner, stars, description, and language. Supports sorting and result limits.
Instructions
Search GitHub for public repositories and return a list of repository records.
Queries the GitHub search API over the network and returns a list of dicts, each with: name (str), owner (str), stars (int), description (str), and language (str). Results are ordered per the sort argument. Returns an empty list when no repository matches the query. Requires network access; may be subject to GitHub API rate limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | String ordering for results; one of "best-match", "stars", "forks", or "updated". Example: "stars". Default "best-match". | best-match |
| query | Yes | String search expression using GitHub search syntax, including qualifiers like "language:" or "stars:". Example: "web scraping language:python". No default (required). | |
| max_results | No | Integer maximum number of repositories to return. Example: 10. Default 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| count | No | ||
| errors | No | ||
| scraper | No | ||
| source_urls | No |