Inspect or maintain the local index
local_indexReport, prune, clear, or compact the local cache of fetched pages and search responses to control disk use and remove stale data. Use stats for safe checks; clear and prune delete permanently.
Instructions
Report on, prune, clear or compact the local cache that stores fetched pages and recent engine responses. stats is safe and cheap; clear and prune delete data permanently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | For `clear`: what to delete (default all). | |
| action | No | stats (default) reports sizes; clear empties the cache; prune drops entries older than max_age_days or beyond max_pages; vacuum compacts the database file. | |
| format | No | Output format. "markdown" (default) is compact and readable; "json" returns structured data for post-processing. | |
| max_pages | No | For `prune`: keep only this many of the most recently fetched pages. | |
| max_age_days | No | For `prune`: drop pages fetched more than this many days ago. |