Search code in a repository
github_search_codeFind specific code snippets in a GitHub repository by searching file contents with path, extension, or custom queries. Returns matching files with fragments for technical SEO analysis.
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 |