github_search_code
Search code across GitHub or scope results to a repository using GitHub code search syntax to find files, functions, or patterns.
Instructions
Search code across GitHub (or scoped to one repo) using GitHub's code 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>",
"perPage": "<perPage>"
},
"name": "github_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| owner | No | ||
| query | Yes | Search query, e.g. 'useEffect repo:owner/repo language:typescript' | |
| perPage | Yes |