Ranked search across projects
searchFind passages about a topic across one or many Overleaf projects using relevance-ranked full-text search. Returns file:line ranges with snippets; use for conceptual queries, not exact matches.
Instructions
Relevance-ranked full-text search (BM25 with fuzzy and prefix matching) that finds passages about a topic, e.g. "related work on diffusion models", across one or many projects. Returns file:line ranges with snippets; read_file or get_section can then fetch the text. Read-only. For exact text or a regex use grep instead.
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": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many passages to return (default 10) | |
| query | Yes | What to look for, in words, e.g. "evaluation metrics" | |
| refresh | No | Re-download the projects before searching | |
| matchAll | No | Require every query word to appear | |
| 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. |