repo_search
Searches code at a ref (task branch, tag or sha) like git grep, returning path:line: text lines: query - a literal string (case-insensitive unless caseSensitive), queries - up to 10 strings, regex - a per-line JavaScript regular expression that filters query matches or, without query, scans the files under path. Up to 200 lines and 50 files per query (truncated beyond); an empty result means no match at that ref.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or sha; defaults to the default branch. | |
| path | No | Directory prefix (src/services) or glob (src/**/*.spec.ts). | |
| limit | No | Maximum matching lines per query. | |
| query | No | Literal string: an identifier or a phrase. | |
| regex | No | JavaScript regular expression matched per line. | |
| context | No | Context lines around each match; default 2. | |
| queries | No | Several literal strings, up to 10. | |
| wholeWord | No | Whole words only. | |
| extensions | No | File extensions without the dot: ts, html. | |
| repositoryID | Yes | Repository ID. | |
| caseSensitive | No | Case-sensitive matching; default false. |