Grep across projects
grepSearch one or many Overleaf LaTeX projects by exact text or regex, returning file:line matches with optional context. Uses local snapshots refreshed when Overleaf reports changes.
Instructions
Exact text or regex search (ripgrep) across one or many projects, with file:line results and optional context. Uses local snapshots that refresh automatically when Overleaf reports changes. For topic-style questions use "search" instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text to find, or a regex when regex is true | |
| regex | No | ||
| exclude | No | ||
| include | No | Glob patterns of files to search, e.g. ["*.tex"] or ["chapters/**"] | |
| refresh | No | Re-download the projects before searching | |
| projects | No | Projects to cover: a list of names/ids, or "all". Defaults to the pinned projects, or the 25 most recently updated if none are pinned. | |
| wholeWord | No | ||
| maxResults | No | Default 100 | |
| contextLines | No | Lines of context around each match (default 1) | |
| caseSensitive | No | Default: smart case (case-insensitive unless the query has capitals) |