files_diff_against_disk
Compare a file's on-disk content with its full-text search index to diagnose stale search results. If content diverged or no index row exists, refresh the project index to fix drift.
Instructions
Diagnose drift between one file's disk content and its FTS index. Status is one of in_sync, diverged, disk_unreadable, or no_index_row. On divergence returns sizes, line counts, the first divergent line number, and the disk vs index sample for that line: NOT a full diff (use files_get_diff for full diffs between commits). Read-only; no side effects, auth, or rate limits. Use when search results look stale; if status is diverged or no_index_row, run projects_refresh_index to fix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID |