SEARCH_REPOS
Search GitHub repositories by query. Supports qualifiers like 'language:python stars:>100'.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search query (e.g. 'machine learning language:python stars:>1000') |
sort | stars | forks | updated | help-wanted-issues | — | Sort results by |
per_page | integer | — | Results per page (default 10, max 100) |
How to use it
You normally trigger this by describing what you want in chat — the agent selects SEARCH_REPOS automatically. For example:
Try saying
“use github to search …”
In a workflow
As a step in a multi-step workflow DAG:
json
{
"id": "s1",
"agent": "github",
"action": "SEARCH_REPOS",
"args": {
"query": "example query",
"sort": "stars",
"per_page": 1
},
"depends_on": [],
"outputs": []
}Direct call
For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.
bash
curl -X POST http://127.0.0.1:8000/execute_tool \
-H "Content-Type: application/json" \
-d '{"tool_name":"SEARCH_REPOS","args":{"query":"example query","sort":"stars","per_page":1}}'Part of the github plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.