search_code
Search code within a single GitHub repository to locate keywords, functions, or patterns; requires GITHUB_TOKEN for authenticated queries.
Instructions
Search code inside one repository. GitHub's code search requires authentication, so this needs GITHUB_TOKEN set.
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 | owner/name or a github.com URL | |
| limit | No | ||
| query | Yes | text to search for in the code | |
| extension | No | restrict to one extension |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||