github.search_code
Search code across GitHub for file matches and text fragments, optionally filtered by repository, language, or result limit.
Instructions
Search code across GitHub. Returns file matches with text fragments.
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": "github.search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Scope to specific repo (owner/name) | |
| limit | No | ||
| query | Yes | ||
| language | No |