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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repositoryID": "<repositoryID>"
},
"name": "repo_search"
}
}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. |