Search code in a repository
github_search_codeSearch file contents in a GitHub repository using code search syntax to locate matching files and fragments.
Instructions
Search file contents in one repository (GitHub code search syntax, e.g. 'og:image path:src', 'canonical extension:astro'). Returns matching files with fragments. Indexed for the default branch only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository as 'owner/name', e.g. 'octocat/my-site'. | |
| limit | No | ||
| query | Yes |