sd_get_document_by_id
Retrieve a complete digitized document by its ID, returning formatted Markdown for reading, citation, and text analysis.
Instructions
Retrieve complete document.
PURPOSE: Detailed view of a specific document as Markdown
WHEN TO USE:
User wants to read a letter/diary entry
After successful search → display details
For citations and text analysis
WHEN NOT TO USE:
For browsing/exploring → use list_collections() or list_collection_contents()
For keyword search → use search_by_keyword()
Args: document_id: The xml:id of the document ctx: FastMCP Context
Returns: Formatted markdown string with document content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |