searchCache
Search previously fetched documents in the local cache by regex pattern. Returns matching page URLs, paths, and match counts to check if content was already retrieved or locate cached pages mentioning a term.
Instructions
Greps the local cache of already-fetched documents — "did we already fetch X", "which cached pages mention Y". Call searchCache{pattern:"transformer attention"}. Returns WHICH cached pages match (url, md_path, match count, sample line), not their text — read md_path or fetch the url for content. Empty matches = nothing held matches (the web is not searched; search or fetch first); a tool error = the pattern was invalid or the cache could not be read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex pattern to search across every cached markdown body in the cache. | |
| ignore_case | No | Case-insensitive search. | |
| max_results | No | Maximum number of matching cached pages to return. |