search
Find code matches with ripgrep, grouped by file with counts and compact line output, so coding agents can inspect results without reading whole files.
Instructions
Code search (ripgrep), grouped by file. Every matching file is listed with its count; big results are compacted. Literal unless regex=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | e.g. ["*.ts","!*.test.ts"] | |
| path | No | ||
| query | Yes | ||
| regex | No | ||
| context | No | default 2 | |
| perFile | No | compact mode: match lines per file (default 3) | |
| maxMatches | No | full detail up to this many matches (default 30); above it: compact mode | |
| caseSensitive | No | default smart-case |