search_code
Search public GitHub repositories for code using text queries and optional qualifiers, then paginate results. Private repository code is never returned.
Instructions
Search code in public GitHub repositories. Results from private repositories are never returned.
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 | 1-based page of results; start at 1. | |
| limit | No | Maximum number of results to return (1–50). | |
| query | Yes | Code search text with optional qualifiers, e.g. `O_NOFOLLOW language:python`. |