search_code
Search across GitHub code using code-search syntax, optionally restrict to a repo, and retrieve file name, path, repository, and link.
Instructions
Search code across GitHub using GitHub's code-search syntax. Optionally restrict the search to a specific repository. Returns file name, path, repository, and a link to each result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Optional 'owner/repo' string to restrict the search to one repo. | |
| query | Yes | GitHub code-search query, e.g. 'authenticate user language:python'. |