Fetch Document Text
fetch_document_textRetrieve full text of Australian legislation or case law from a URL. Optionally save a local copy for offline reference.
Instructions
Fetch full text for a legislation or case URL (AustLII). 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). |