github_search
GitHub — search: repositories, code, issues/PRs, accounts, commits.
q takes GitHub's qualifier syntax, passed as-is:
repo:, org:, language:, is:issue / is:pr, state:, in:file…
⚠️ Cap of 1,000 results, whatever total_count announces. This
counter is an estimate of the corpus, NOT the number of retrievable
rows: beyond that, GitHub answers 422. The response therefore carries a computed
troncature, which is also true when GitHub gave up the
search midway (incomplete_results) — two causes
invisible otherwise.
⚠️ Code search has its own rules, and they explain most of the
"why doesn't it find it?" questions: only the default branch is
indexed, files larger than 384 KB are not, and at least one real
term is needed — repo:x alone is not enough. It does not return
the file's content: read it afterwards with github_files op='read'.
⚠️ Its own, low usage limit (~30 requests/minute), an order of magnitude below the rest of the API.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "github_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | the query, GitHub syntax (required). | |
| op | No | repos | code | issues | users | commits. | repos |
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| page | No | page number. | |
| sort | No | depends on op — stars/forks/updated (repos), indexed (code), comments/created/updated (issues). Absent = by relevance. | |
| order | No | asc | desc. | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| _account | No | Compte à OPÉRER parmi : `Julien` (org), `Tulina front` (org). `oto_identity(op='list')`. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| per_page | No | rows per page (1-100, default 30). | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. |