Get Lemma Docs Chunks
lemma_docs_getFetch full text of Lemma documentation chunks by ID or by document path, expanding excerpts from search results. Use after discovery to read complete sections.
Instructions
Fetch the full text of specific indexed Lemma documentation chunks by id, or every chunk of one document by its relative path. Use this after lemma_docs_context to expand excerpts you actually need — do not use it to browse (use lemma_docs_context for discovery). Reads the local corpus index only; it NEVER calls live Lemma or banking APIs.
Args:
ids (string[], 1-8, optional): Chunk ids exactly as returned by lemma_docs_context.
path (string, optional): A relative corpus path exactly as returned in a result's 'path' field; returns all chunks of that document in order.
response_format ('markdown' | 'json', default 'markdown'): Text rendering; structured content is always attached. At least one of ids or path is required.
Returns (structured): { found: [{ id, namespace, source_type, path, heading, text, metadata }], missing: [string], truncated?, truncation_message? }
Examples:
ids=["lemma-docs-docs-guides-deposit-bonuses.md#md-1-0"] -> full text of that section.
path="lemma-docs-docs-guides-mso-pc-compliance.md" -> every chunk of that document (may truncate; follow the truncation message).
Errors:
Calling with neither ids nor path returns an error explaining both options.
Unknown ids/paths are reported in 'missing' rather than failing the whole call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Chunk ids exactly as returned by lemma_docs_context (e.g. "lemma-docs-docs-guides-deposit-bonuses.md#md-1-0"), up to 8 per call. | |
| path | No | A relative corpus path exactly as returned in a previous result's 'path' field. Returns every chunk of that document, in order. | |
| response_format | No | Text output format: 'markdown' for human-readable (default) or 'json' for the full machine-readable object. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | ||
| missing | Yes | ||
| truncated | No | ||
| truncation_message | No |