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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "fetch_document_text"
}
}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). |