search_code
Locate code across GitHub repositories using flexible search queries. Filter results by language, file type, or repository to quickly find relevant code snippets.
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": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| query | Yes | Search query (e.g. 'addClass in:file language:javascript repo:jquery/jquery') | |
| per_page | No |