gluecron_search_code
Literal / regex code search (git grep, basic regex) across a repo at a ref. The dependable way to find code on this host — works on every repo, indexed or not. Optional scoping: path (a directory or file prefix, literal), glob (git pathspec glob such as src/**/*.ts, relative to path when both are given), ignore_case, and files_only (unique files with match counts instead of lines). Returns {owner, repo, ref, total, truncated, matches: [{file, line, text}]}, or with files_only {owner, repo, ref, total, totalMatches, truncated, files: [{file, count}]}. Omit ref for the default branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch / tag / sha (default: the repo's default branch) | |
| glob | No | Only search files matching this git pathspec glob (e.g. **/*.test.ts); relative to `path` when both are given | |
| path | No | Only search under this repo-relative directory or file (literal prefix, e.g. src/lib) | |
| repo | Yes | ||
| limit | No | Max matches, or max files with files_only (default 50, max 200) | |
| owner | Yes | ||
| query | Yes | Pattern (git grep basic regex) | |
| files_only | No | Return unique files with match counts instead of matching lines | |
| ignore_case | No | Case-insensitive match (default false) |