github code
github_codeSearch code across all public GitHub repositories: find real usage examples of a function, API or config key, with file paths, links and the matching code fragments. Filter by language, repo, org or filename. Costs $0.004 USDC per call (x402).
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": {
"q": "<q>"
},
"name": "github_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Code to find | |
| org | No | ||
| repo | No | owner/name | |
| limit | No | ||
| filename | No | ||
| language | No |