Fetch Document Text
fetch_document_textRetrieve full text of Australian legislation or case law from AustLII or jade.io URLs, with OCR for scanned PDFs. Optionally save a local copy with cite key.
Instructions
Fetch full text for a legislation or case URL (AustLII or jade.io), with OCR fallback for scanned PDFs. When a citeKey is supplied and AUSLAW_FETCH_SOURCES is not set to 'false', also saves a local markdown copy to the sources directory and updates the cache entry's HTTP freshness headers. Without citeKey, only the document text is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| format | No | json | |
| citeKey | No | Cite key of an existing cache entry to associate with this fetch (updates source fields). |