get_document
Fetch a single legal document by source and ID, with automatic pagination for long texts. Use it to retrieve official Turkish case law or legislation for citation-safe research.
Instructions
Fetch a single document by ID from the given source.
Args: source: Source identifier. document_id: Document ID (must not be empty). include_raw: If True, include the raw upstream response in the output (debugging). Default: False (deduplicated output with single markdown text field). page_number: 1-indexed page number for long documents (>= 40 000 chars). Default 1 returns the first page. Long documents are split at paragraph boundaries so no page starts or ends mid-paragraph.
Returns:
Document dict with deduplicated metadata and content fields.
Text is served as a single markdown field; full_text,
raw, and metadata.content are omitted by default.
For long documents (>= 40 000 chars), the response includes
``current_page``, ``total_pages``, and ``total_chars`` so the
agent can request subsequent pages via ``page_number``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| document_id | Yes | ||
| include_raw | No | ||
| page_number | No |