Search the snapshot text
snapshot_searchSearch included snapshot parts case-insensitively for text or regex and return each match's path, part, line, and snippet within match and scan limits; redacted and excluded data stays hidden.
Instructions
Case-insensitive text search across the emitted parts, bounded by a match cap and a scan budget. Returns the path, part and line number of each match with a short snippet. Reads only what the snapshot contains, so redacted values and excluded files are never found.
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": "snapshot_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the directory this server was started in. | |
| query | Yes | Text to find (at least 3 characters). | |
| regex | No | Treat the query as a regular expression. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| maxMatches | No | Cap on matches (default 50). | |
| contextLines | No | Lines of context around each match (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matches | No | ||
| scanned | No | ||
| truncated | No |