Cite (Cache Citation / Refresh Source)
citeStore or update legal citations in a local cache with automatic AGLC4 formatting and biblatex-compatible cite keys, or check cached source freshness and re-download when remote content changes.
Instructions
Write to the local citation cache. action=add (default) stores or updates a citation, assigns a biblatex-compatible cite key on first use, and returns the cite key and canonical AGLC4 string. action=refresh_source checks whether the locally cached source file for a citation is still current (conditional HEAD using stored ETag/Last-Modified) and re-downloads it when the remote is newer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Primary source URL (AustLII) — required for action=add | |
| type | No | Source type | case |
| year | No | Decision year | |
| court | No | Court code, e.g. 'HCA' | |
| style | No | Which citation components to include in aglc4Full | combined |
| title | No | Case name, e.g. 'Mabo v Queensland (No 2)' — required for action=add | |
| action | No | add = store/update a citation in the local cache (default); refresh_source = check the cached source file's freshness via conditional HEAD and re-download when stale | add |
| citeKey | No | Cite key of a cached citation, e.g. 'mabo1992' — required for action=refresh_source | |
| summary | No | Brief abstract of the source | |
| document | No | Logical document name this citation belongs to, e.g. 'essay-chapter-3' | |
| keywords | No | ||
| pinpoint | No | Pinpoint to include in the AGLC4 full form, e.g. '[20]' or '401 to 407' | |
| jurisdiction | No | ||
| footnoteNumber | No | Footnote number where this citation first appears in `document` | |
| neutralCitation | No | Neutral citation, e.g. '[1992] HCA 23' | |
| reportedCitation | No | Reported citation, e.g. '(1992) 175 CLR 1' |