bib:add
Add a CSL-YAML bibliography entry, validating required fields and duplicate IDs while creating a backup before writing. Returns the created YAML block for confirmation.
Instructions
Add a new bibliography entry. Validates required fields per CSL type, checks for duplicate IDs, and creates a .bak backup before writing. Returns the created YAML block for confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the CSL-YAML bibliography file (required). Look for "bibliography:" in pandoc.yaml or the YAML frontmatter of .md files. | |
| entry | Yes | The CSL-YAML entry to add | |
| style | No | Optional path to a CSL style file (.csl). Enables style-aware required-field validation. |