github_search_code
Search GitHub code repositories for specific terms, optionally scoped to a single repository using repo:owner/name syntax.
Instructions
Search code across GitHub (or within a specific repo using repo:owner/name in the query).
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 |
|---|---|---|---|
| query | Yes | Search query, e.g. 'repo:facebook/react useState' | |
| per_page | No |