Resolve CSL citation styles
zotero_stylesResolve human citation-style names like "APA 7th" or "IEEE" to valid CSL style ids and verify they can be fetched, or list common aliases.
Instructions
Resolve a human citation-style name to a valid CSL style id and confirm it is available, or list common style aliases. action: "resolve" maps names like "APA 7th", "IEEE", "Vancouver", "Chicago", "MLA", "Nature" to the correct CSL id (e.g. apa, ieee, modern-language-association) and verifies the style can be fetched; pass the returned styleId as the style argument to zotero_format_bibliography or zotero_bibliography. action: "list" returns the built-in common aliases (any id from the CSL styles repository also works). Dependent styles are resolved to their independent parent automatically when formatting. Long names resolve too, including the titles Zotero lists styles under ("Chicago Manual of Style 17th edition (author-date)", "American Psychological Association 7th edition"), and a past edition the CSL repository still carries (Chicago 16th and 17th, APA 6th, AMA 10th) resolves to that edition's own style rather than to the current one. A name it cannot read is tried as a CSL id as given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Style name to resolve (e.g. "APA 7th"). | |
| action | Yes | What to do: "resolve" maps `name` to a CSL style id and checks it can be fetched; "list" returns the built-in common aliases. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | The name that was resolved, echoed back. | |
| common | No | action:"list": the built-in style aliases. Any id from the CSL styles repository also works. | |
| styleId | No | The CSL style id it maps to, e.g. "apa"; pass it as `style` to the bibliography tools. | |
| available | No | Whether that style could actually be fetched. |