search_github
Search GitHub repositories using keywords in Chinese or English, returning repository URLs to enable code retrieval and reuse. Refine search results with a limit parameter, then browse and read files for further exploration.
Instructions
在 GitHub 搜索仓库,返回仓库 URL。
这是搜索 GitHub 的唯一途径,禁止使用 gh CLI 或 curl。 找到仓库后,用 list_github_files 浏览文件,read_github_file 读代码。
Args: query: Search keywords (中文或英文均可) limit: Maximum results (default: 10, max: 30)
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": {
"query": "<query>"
},
"name": "search_github"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |