read_document
ChatGPTRead WITHIN a single document from the Nylon legal library, or read passages around a known extract. Use this after search_library has identified a relevant document (by documentId) or extract (by chunkId). Three modes, chosen by the field combination: - Whole document: pass only documentId. Returns the whole document, capped at ~50,000 tokens. If it is longer, only the first portion is returned — use search-within for the rest. - Search within: documentId + a "phrase". Returns the most relevant extracts inside that document. Pick searchType="keyword" for exact strings/citations or "semantic" (default) when you are unsure of the wording. - Adjacent: documentId + an "extractId" (chunkId). Returns the extracts immediately above and/or below that chunk — useful for reading the context around a passage or continuing past a cut-off. Choose direction via position (defaults to both). Returns extracts with their text, identifiers (chunkId / documentId), and a clickable resolver link. When citing a source, use ONLY the
link field from the result. Never construct, guess, or recall a source URL yourself — in particular do not link to austlii.edu.au, nzlii.org, or other external case-law databases. If a result has no link, cite it by title without a URL.





