sd_get_raw_document_by_path
Retrieve the raw XML content of a document directly using its file path, bypassing the need for ID-based lookup when the path is already known.
Instructions
Retrieve raw XML document by its file path.
PURPOSE: Fetch raw XML for a document using its database path.
WHEN TO USE:
When you have a file path from browse_collection
When accessing documents with known paths
Faster than ID-based lookup when path is known
WHEN NOT TO USE:
When you have an xml:id → use get_raw_document_by_id()
For exploring documents → use browse or search tools
Args: doc_path: Path to the document (relative to /db) ctx: FastMCP Context for progress reporting
Returns: RawDocument with id, xml content, and path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document identifier (xml:id or filename) | |
| xml | Yes | Raw XML content | |
| path | No | File path in database |