scry_sink
Resets the index to disk-only state by truncating all index tables in one atomic transaction, preserving schema. Requires user confirmation.
Instructions
Lower the index back to disk-only state. The DB forgets; the disk remembers.
Truncates all scry index tables (scry__doc, scry__anchor, scry__bind, scry__rel, scry__file, scry__warning, and join tables) in a single atomic transaction. Schema is preserved; FTS tables update via existing triggers. Disk markers are never modified.
Requires protocol-level user confirmation via MCP elicitation before executing — the operation will not proceed if the confirmation is declined, cancelled, or unavailable.
Args: then_surface: If True, immediately runs scry_surface after the sink to rebuild the index from disk markers in a single call. Equivalent to "reset + reindex."
Returns JSON with pre-deletion counts and operation result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then_surface | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |