get_legislation_content
Retrieves Australian workplace legislation text, summaries, or metadata by canonical ID, downloading and caching it when unavailable; optionally filters to a specific section.
Instructions
Retrieve legislation content from cache or download if needed.
Args: canonical_id: Canonical legislation ID (e.g., "/au-victoria/ohs/2004") mode: Content mode - "text" (full statutory text), "summary" (plain language), or "metadata" (dates, amendments, related provisions) section: Optional section filter (e.g., "s21")
Returns: Legislation content as text or JSON error
Example: >>> get_legislation_content("/au-victoria/ohs/2004", mode="text") "# Occupational Health and Safety Act 2004\n\n..."
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": {
"canonical_id": "<canonical_id>"
},
"name": "get_legislation_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text | |
| section | No | ||
| canonical_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |