Skip to main content
Defined in: server/completion.ts:48 A completion callback. Receives the partial value the user has typed and the optional resolved-argument context, and returns suggestions — either a bare string[] or a CompletionResult with explicit pagination hints. May be async.

Parameters

value

string

context?

CompletionContext

Returns

| string[] | CompletionResult | Promise<string[] | CompletionResult>