Module get

Module get 

Source
Expand description

Document retrieval by ID.

Fetches a full document and its associated chunks from the database via SqliteStore. Used by both the ctx get CLI command and the POST /tools/get HTTP endpoint.

§Usage

# Retrieve a document by UUID
ctx get 550e8400-e29b-41d4-a716-446655440000

§Response Shape

The response matches the context.get schema defined in docs/SCHEMAS.md, including full document metadata, body text, and all chunks ordered by index.

Structs§

ChunkResponse
A single chunk within a DocumentResponse.
DocumentResponse
Full document response including metadata, body, and chunks.

Functions§

get_document
Retrieves a document by its UUID, including all associated chunks.
run_get
CLI entry point for ctx get <id>.