Get Legal Document Markdown
get_legal_document_markdownRetrieve full Markdown text of New Zealand legislation or court judgments by URL or official identifier. Convert HTML or PDF legal documents into pageable Markdown for AI clients.
Instructions
Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from New Zealand (NZ) by its URL or official identifier.
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": {
"document_id_or_url": "<document_id_or_url>"
},
"name": "get_legal_document_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (5,000 characters per page). | |
| document_id_or_url | Yes | Document URL (.html or .pdf), ECLI, ELI, or official ID returned by search tools. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||