Skip to content

TroveClient

A scoped client over the calling user’s own Trove knowledge base.

Present on ToolContext.trove only when the manifest scopes granted it (trove:search for reads, trove:ingest for writes); otherwise ctx.trove is undefined.

getDocument(id: string): Promise<TroveDocument>;

Fetch a full document by id. Requires trove:search.

ParameterType
idstring

Promise<TroveDocument>


ingest(docs: TroveIngestDoc[]): Promise<TroveIngestResult>;

Write documents into the knowledge base. Requires trove:ingest.

ParameterType
docsTroveIngestDoc[]

Promise<TroveIngestResult>


search(query: string, opts?: TroveSearchOpts): Promise<TroveSearchResult[]>;

Semantic search over the user’s knowledge base. Requires trove:search.

ParameterType
querystring
opts?TroveSearchOpts

Promise<TroveSearchResult[]>