db_reef_refresh
db_reef_refreshReplace indexed Reef facts with the current database schema snapshot, including schemas, tables, columns, indexes, foreign keys, RLS policies, triggers, enums, and RPCs. Use after project_index_refresh for a fresh snapshot.
Instructions
Explicit Reef DB ingestion tool: replace indexed Reef facts for the current schema snapshot, including schemas, tables, columns, indexes, foreign keys, RLS policies, triggers, enums, RPCs, RPC-to-table refs, and indexed schema usages. Uses the existing schema snapshot/read-model indexes; run project_index_refresh first if the snapshot is stale or missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| projectRef | No | ||
| includeAppUsage | No | ||
| includeFacts | No | ||
| factsLimit | No | ||
| freshen | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | Yes | ||
| projectId | Yes | ||
| projectRoot | Yes | ||
| facts | No | ||
| factsTruncated | No | ||
| schemaFreshness | Yes | ||
| summary | Yes | ||
| warnings | Yes | ||
| _hints | Yes |