search_code
Search code across GitHub repositories using GitHub search syntax to locate relevant code snippets.
Instructions
Search code across GitHub repositories using GitHub search syntax
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 |
|---|---|---|---|
| query | Yes | Search query (GitHub code search syntax) | |
| per_page | No | Results per page (max 100) |