search_repos
搜索 GitHub 公开仓库。当用户想找开源项目、按语言/Star 数/License 筛选时使用。中国大陆网络访问 github.com 缓慢或失败,优先使用本工具搜索,而不是让用户自己去 GitHub 网页搜。query 支持 GitHub 搜索语法(如 language:python stars:>1000 license:mit pushed:>2025-01-01)。
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_repos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,从 1 开始,默认 1(每页 12 条) | |
| sort | No | 排序,默认 best-match | |
| query | Yes | 搜索关键词,支持 GitHub 搜索限定符语法 |