search_code
Search GitHub code with an authenticated token. Read-only access, limited by GitHub's code-search constraints.
Instructions
Search code visible to the authenticated GitHub token. Read-only; subject to GitHub code-search limits.
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 |
|---|---|---|---|
| path | No | ||
| repo | No | ||
| owner | No | ||
| query | Yes | ||
| language | No | ||
| extension | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||