Propose fixes for a bibliography
preflight_bib_fixPropose unified diffs that fix broken bibliography identifiers, add missing DOIs, and optionally update metadata from verified records; you apply the diff yourself.
Instructions
Propose edits to the .bib files, taken from the verified records, as a unified diff. Nothing is written: apply the diff with your own editing tools.
level="safe" only fixes identifiers written so that links break and adds DOIs the
registry has; level="unsafe" also rewrites authors, title, year and venue from the
record, removes identifiers that point to another work and cites a preprint as its
published version (keeping the eprint). Show unsafe diffs to the user
before applying them. References nobody could find are never "fixed".
Use it after preflight_check has reported errors or warnings in the bibliography.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Only these citation keys (default: every key with a fix). | |
| path | No | A LaTeX project folder or .tex file, a Markdown, Quarto or Typst manuscript (.md, .qmd, .typ), a Word manuscript (.docx), or a reference list (.bib, .bbl, .json, .ris, .yml, .txt, .pdf), relative to the workspace root (default: the root itself). | . |
| level | No | safe: only broken identifiers and missing DOIs; unsafe: also authors, title, year and venue from the record. | safe |
| offline | No | true: answer only from the local cache and never touch the network (references not cached yet come back as unverified). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||