Search Repos
search_reposSearch GitHub repositories by keyword. Returns repo name, description, star count, forks, primary language, and URL. Use when exploring projects or finding code implementations.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "react hooks"
},
"name": "search_repos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort results by: stars, forks, or updated (default: stars) | |
| query | Yes | Search query string (e.g., "react hooks", "cli tool language:go") | |
| per_page | No | Number of results to return (default 10, max 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repos | Yes | List of matching repositories | |
| total_count | Yes | Total number of matching repositories | |
| incomplete_results | Yes | Whether the results are incomplete |