search_code
Find code across GitHub repositories using query syntax to locate relevant files and snippets for debugging, auditing, or reuse.
Instructions
Search for code across GitHub
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 |
|---|---|---|---|
| sort | No | Sort by | |
| order | No | Sort order | |
| query | Yes | Search query (GitHub code search syntax) | |
| per_page | No | Results per page (max 100) |