gh_search_code
Search GitHub source code using all supported qualifiers, such as language or function name, to find precise matches.
Instructions
Search GitHub source code.
Supports all GitHub code search qualifiers (e.g. 'func name:main language:python').
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": "gh_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| query | Yes | ||
| truncated | Yes | ||
| total_count | No |