Format AGLC4 Citation
format_citationFormat Australian case citations according to AGLC4 rules, with modes for full citations, short forms, ibid, subsequent references, and pinpoint paragraph citations from AustLII judgments.
Instructions
Format an Australian case citation per AGLC4 rules. mode=full combines case name, neutral citation, reported citation, and optional pinpoint. mode=short/ibid/subsequent produce AGLC4 short-form, Ibid, and subsequent references (subsequent requires footnoteRef). mode=pinpoint fetches a judgment from AustLII and generates a pinpoint citation to a specific paragraph (by number or phrase).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | AustLII document URL to fetch and search — required for pinpoint mode | |
| mode | No | full = AGLC4 full citation (default); short = short form; ibid = Ibid (back-to-back same source); subsequent = title (n X); pinpoint = fetch a judgment and generate a paragraph pinpoint | full |
| style | No | Citation style for full mode: neutral (neutral only), reported (reported only), combined (both) | combined |
| title | No | Case name, e.g. 'Mabo v Queensland (No 2)' (full mode) or the abbreviated case name chosen at first reference, e.g. 'Mabo' (short/ibid/subsequent). Required for all modes except pinpoint. | |
| phrase | No | Phrase to search for within paragraphs (pinpoint mode) | |
| pinpoint | No | Pinpoint reference, e.g. '[20]' (full mode) | |
| footnoteRef | No | Footnote number of first citation — required for subsequent mode | |
| caseCitation | No | Case citation to prepend to the pinpoint, e.g. '[2022] FedCFamC2F 786' (pinpoint mode) | |
| pinpointPage | No | Page pinpoint number for short-form modes, e.g. 401 | |
| pinpointPara | No | Paragraph pinpoint number for short-form modes, e.g. 20 → [20] | |
| neutralCitation | No | Neutral citation, e.g. '[1992] HCA 23' (full mode) | |
| paragraphNumber | No | Paragraph number to locate (pinpoint mode) | |
| reportedCitation | No | Reported citation, e.g. '(1992) 175 CLR 1' (full mode) |