Docs

Read document

Use this after search or browsing returns a document ID. It retrieves a Markdown window from the source text, with optional metadata, so the answer can be checked against the underlying legislation or case law.

Use when

  • Use this whenever the AI needs the actual source text before drafting.
  • Long documents are read in windows so the model can follow the relevant passage.

read_document

Open the source text behind a search or browse result.

ParameterTypeDescription
document_idstringDocument ID returned by list_documents or search_documents.
source_urlstringExact source URL for reading a document without resolving its ID first.
langsstring[]Optional language filters when a source URL resolves multiple documents.
offsetnumber= 0Character offset for pagination.
limitnumber= 4000Characters to return from this window.
show_metadataboolean= falseInclude curated document metadata before the Markdown window.
ArgumentsJSON
{
  "document_id": "4d8f35c4-9a31-4f84-9b9f-8db70b8ec2ad",
  "offset": 18420,
  "limit": 2200,
  "show_metadata": true
}
Responsetext
---
title: "Digital Rights Ireland Ltd v Minister for Communications, Marine and Natural Resources"
id: "4d8f35c4-9a31-4f84-9b9f-8db70b8ec2ad"
total_chars: 87942
source: "publications.europa.eu"
source_name: "EUR-Lex"
lang: "en"
identifiers:
  - "C-293/12"
  - "C-594/12"
tags:
  - "case"
source_url: "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:62012CJ0293"
---

...Directive 2006/24 concerns the retention of data generated or processed in connection with the provision of publicly available electronic communications services or of public communications networks.

The referring courts ask whether that retention, and access to retained data by competent national authorities, is compatible with Articles 7 and 8 of the Charter...

<!--
shown_chars: 18420-20620 of 87942
remaining_chars: 67322
continue_with: read_document document_id="4d8f35c4-9a31-4f84-9b9f-8db70b8ec2ad" offset=20620
-->