github_search_code
Search GitHub repositories for code snippets using filters like language, file, and repository to locate specific implementations.
Instructions
Search for code across GitHub repositories
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 |
|---|---|---|---|
| page | No | Page number | |
| sort | No | Sort field | |
| order | No | Sort order | |
| query | Yes | Search query (e.g., 'addClass in:file language:js repo:jquery/jquery') | |
| per_page | No | Results per page |