search_code
Find specific code within a GitHub repository by executing targeted search queries.
Instructions
Search for code within a specific repository using the GitHub code search API.
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": {
"repo": "<repo>",
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository in "owner/repo" format. | |
| query | Yes | Search query (e.g. "function authenticate"). | |
| max_results | No | Maximum number of results to return (default: 10, max: 30). |