restore_missing_pdf_images
Restore missing legacy embedded-image files from original PDFs. Validates reconstruction against database rows and surviving files before writing, with dry-run preview.
Instructions
Restore missing legacy embedded-image files from their original PDFs.
Restoration is fail-closed: the reconstructed PDF sequence must match every database row and every surviving file byte-for-byte before any file is written. The call never changes research Markdown or figure database rows.
Args: note_paths: Explicit vault-relative article paths; at most 20. dry_run: Validate and list the next bounded restore batch without writes. note_limit: Maximum supplied notes to inspect; 1 through 20. image_limit: Maximum missing image files to restore; 1 through 20. source_pdfs: Optional local PDF paths aligned with note_paths, for an explicitly verified copy when the recorded File Provider path is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| note_limit | No | ||
| note_paths | Yes | ||
| image_limit | No | ||
| source_pdfs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |