Repository Search
repository_searchSearch file contents recursively across a repository to locate matching file, line, and column hits using literal or regex queries, with path and glob filters. Read-only.
Instructions
Recursively search file contents across the repository and return matching file/line/column hits. Read-only.
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": {
"query": "<query>"
},
"name": "repository_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Glob filter on relative paths, e.g. "src/**/*.ts". | |
| path | No | Directory relative to the workspace root (default "."). | |
| limit | No | Maximum matches (default 50). | |
| query | Yes | Literal text or regular expression to search for. | |
| regex | No | Treat query as a regular expression. | |
| caseSensitive | No | Case-sensitive matching (default false). |